Skip to content

Commit 6dffedf

Browse files
authored
feat(wallet-dashboard): improve error message when ledger is not connected (#5397)
1 parent 268d5c1 commit 6dffedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/wallet-dashboard/components/dialogs/send-token/SendTokenDialog.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ function SendTokenDialogBody({
7878
coinType: selectedCoin.coinType,
7979
});
8080
},
81-
onError: () => {
81+
onError: (error) => {
8282
setOpen(false);
83-
toast.error('Transfer transaction failed');
83+
toast.error(error?.message ?? 'Transfer transaction failed');
8484
},
8585
});
8686
}

0 commit comments

Comments
 (0)