Skip to content

Commit

Permalink
fix: handle no error message
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Jul 22, 2024
1 parent 9e45ad4 commit 56535d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function isUserRejectedError(error: any) {
return (
error?.code === 4001 ||
error?.code === 'ACTION_REJECTED' ||
error?.message.match(/User Cancelled/) ||
error?.message?.match(/User Cancelled/) ||
error instanceof UserRejectedRequestError
)
}
Expand Down

0 comments on commit 56535d8

Please sign in to comment.