From 2eaf37954b97767ddb88fffb1c1e2b2acf9bdc42 Mon Sep 17 00:00:00 2001 From: Iris Date: Fri, 19 Jul 2024 09:40:29 +0200 Subject: [PATCH] fix: signature undefined error msg --- app/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index e2c41f7..a41e863 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -321,7 +321,7 @@ export default function Home() { typedData )) as WeierstrassSignatureType; console.log("signature", signature); - if (signature === undefined) { + if (!signature) { setErrorMsg( "Click reset not taken into account, please contact your wallet provider." ); @@ -354,7 +354,7 @@ export default function Home() { try { const signature = await starknetAccount?.signMessage(typedData); console.log("signature", signature); - if (signature === undefined) { + if (!signature) { setErrorMsg( "Click reset not taken into account, please contact your wallet provider." ); @@ -399,7 +399,7 @@ export default function Home() { { skipDeploy: needSkipDeploy() } ); console.log("signature", signature); - if (signature === undefined) { + if (!signature) { setErrorMsg( "Click reset not taken into account, please contact your wallet provider." ); @@ -438,7 +438,7 @@ export default function Home() { { skipDeploy: needSkipDeploy() } ); console.log("signature", signature); - if (signature === undefined) { + if (!signature) { setErrorMsg( "Click reset not taken into account, please contact your wallet provider." );