Skip to content

Commit

Permalink
change ui on trycatch
Browse files Browse the repository at this point in the history
  • Loading branch information
raviycoder committed Jul 23, 2024
1 parent 1b7f992 commit 71ff660
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,7 @@ <h4>Receiver</h4>
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]) {
Expand Down

0 comments on commit 71ff660

Please sign in to comment.