Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jun 6, 2023
1 parent 42fad6b commit e9cffdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/AddTokenToWallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
});
} catch (e) {
if (e instanceof UserRejectedRequestError) {
if (e.code === 4001) {
warningToast('Adding token has been rejected.');
} else {
errorToast('Failed to add token to wallet');
Expand Down

0 comments on commit e9cffdc

Please sign in to comment.