Skip to content

Commit

Permalink
fix: signature undefined error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Jul 19, 2024
1 parent f54173c commit 2eaf379
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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."
);
Expand Down Expand Up @@ -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."
);
Expand Down Expand Up @@ -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."
);
Expand Down Expand Up @@ -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."
);
Expand Down

0 comments on commit 2eaf379

Please sign in to comment.