diff --git a/src/screens/Deposit.tsx b/src/screens/Deposit.tsx index 27ca1d1..4954381 100644 --- a/src/screens/Deposit.tsx +++ b/src/screens/Deposit.tsx @@ -212,9 +212,14 @@ export function Deposit({ onDone }: DepositProps) { if (e instanceof Error && e.message === 'Aborted') { return } - setTxError( - e instanceof Error ? e.message : 'Transaction failed — please try again.', - ) + const errMsg = e instanceof Error ? e.message : 'Transaction failed — please try again.' + setTxError(errMsg) + toast({ + tone: 'error', + title: 'Transaction failed', + message: errMsg, + duration: 0, + }) changeStep('amount') } } finally { diff --git a/src/screens/Withdraw.tsx b/src/screens/Withdraw.tsx index 0d3df41..5952572 100644 --- a/src/screens/Withdraw.tsx +++ b/src/screens/Withdraw.tsx @@ -117,9 +117,14 @@ export function Withdraw({ onDone, onBack }: WithdrawProps) { if (e instanceof Error && e.message === 'Aborted') { return } - setTxError( - e instanceof Error ? e.message : 'Transaction failed — please try again.', - ) + const errMsg = e instanceof Error ? e.message : 'Transaction failed — please try again.' + setTxError(errMsg) + toast({ + tone: 'error', + title: 'Transaction failed', + message: errMsg, + duration: 0, + }) changeStep('amount') } } finally {