From 35e99ba578b6b7d9fec094169b7497794a915489 Mon Sep 17 00:00:00 2001 From: HeesungB Date: Wed, 21 Dec 2022 00:48:49 +0900 Subject: [PATCH] Add sentry error when verifier has error --- pages/verification/index.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/verification/index.tsx b/pages/verification/index.tsx index e0b6b58..0b4d6aa 100644 --- a/pages/verification/index.tsx +++ b/pages/verification/index.tsx @@ -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,