resolve transaction error in send page
This commit is contained in:
parent
193aba3adf
commit
d32f2ab0b5
@ -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]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user