Skip to content

Commit

Permalink
Don't log insufficient funds message
Browse files Browse the repository at this point in the history
  • Loading branch information
victorkirov committed Feb 13, 2024
1 parent 4929264 commit 6702d63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/screens/sendBtc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ function SendBtcScreen() {
setAmountSats(transactionDetails.summary.outputs[0].amount.toString());
}
} catch (e) {
console.error(e);
if (!(e instanceof Error) || !e.message.includes('Insufficient funds')) {
// don't log the error if it's just an insufficient funds error
console.error(e);
}

setTransaction(undefined);
setSummary(undefined);
} finally {
Expand Down

0 comments on commit 6702d63

Please sign in to comment.