Move IDX errors to console.debug

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2021-11-13 16:23:05 +01:00
parent 944bd669e8
commit 299e7a2c32
+4 -1
View File
@@ -147,7 +147,10 @@ export class Profile {
);
return { address, ens: null, idx };
} catch (e) {
console.error(e);
// Look for the No DID found for error by the resolveIdxProfile fn and send it to console.debug
if (e.message.match("No DID found for")) console.debug(e);
else console.error(e);
return { address, ens: null, idx: null };
}
}