mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-04-30 13:42:52 +08:00
Don't log insufficient funds message
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user