Add sentry error when verifier has error

This commit is contained in:
HeesungB 2022-12-21 00:48:49 +09:00
parent 90c4909afb
commit 35e99ba578

View File

@ -370,6 +370,20 @@ export default function VerificationPage() {
twitterInfo.accessToken,
);
icnsVerificationList.forEach((verification) => {
if (verification.status === "fulfilled") {
if (verification.value.errors.length > 0) {
captureException(verification.value.errors);
}
}
if (verification.status === "rejected") {
if (verification.reason) {
captureException(verification.reason);
}
}
});
const registerMsg = makeClaimMessage(
walletKey.bech32Address,
twitterInfo.username,