diff --git a/index.html b/index.html index 2a837a3..74dc707 100644 --- a/index.html +++ b/index.html @@ -1603,6 +1603,9 @@ getRef("sender_balance_container").classList.add("hidden"); } catch (e) { console.error(e.message); + showTransactionResult("failed", { + description: `Insufficient ${asset.toUpperCase()} balance`, + }); const regex = /\(error=({.*?}),/; const match = e.message.match(regex); if (match && match[1]) {