Skip to content

Commit

Permalink
Add check for typeof e.message
Browse files Browse the repository at this point in the history
  • Loading branch information
JIOjosBG committed Jul 3, 2024
1 parent 21ecc87 commit 3688965
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Actions = ({
.catch((e) => {
if (isMounted.current) setSigningStatus(null)
console.error(e)
if(!e || !e.message) {
if(!e || !e.message || typeof e.message !== 'string') {
addToast(`Signing error: Unknown error`, { error: true })
} else if (
e.message.includes('must provide an Ethereum address') ||
Expand Down

0 comments on commit 3688965

Please sign in to comment.