Skip to content

Commit

Permalink
fix: handle error is undefined with typeof string (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
trungbach authored Sep 11, 2024
1 parent 08149ca commit 62d3917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class Metamask extends EvmWallet {
method: 'eth_requestAccounts',
params: []
});
if (address === 'undefined') return '';
return address;
}
}
Expand Down

0 comments on commit 62d3917

Please sign in to comment.