From 71ff660d35f7aa6c370e756c04d07871a2395d91 Mon Sep 17 00:00:00 2001 From: raviycoder <135521192+raviycoder@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:36:12 +0530 Subject: [PATCH] change ui on trycatch --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index 74dc707..fb8b09b 100644 --- a/index.html +++ b/index.html @@ -1603,9 +1603,7 @@

Receiver

getRef("sender_balance_container").classList.add("hidden"); } catch (e) { console.error(e.message); - showTransactionResult("failed", { - description: `Insufficient ${asset.toUpperCase()} balance`, - }); + showTransactionResult("failed", {description:e.message}); const regex = /\(error=({.*?}),/; const match = e.message.match(regex); if (match && match[1]) {