Don't log insufficient funds message

This commit is contained in:
Victor Kirov
2024-02-13 13:06:37 +02:00
parent 4929264be0
commit 6702d63850

View File

@@ -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 {