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");
|
getRef("sender_balance_container").classList.add("hidden");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e.message);
|
console.error(e.message);
|
||||||
|
showTransactionResult("failed", {
|
||||||
|
description: `Insufficient ${asset.toUpperCase()} balance`,
|
||||||
|
});
|
||||||
const regex = /\(error=({.*?}),/;
|
const regex = /\(error=({.*?}),/;
|
||||||
const match = e.message.match(regex);
|
const match = e.message.match(regex);
|
||||||
if (match && match[1]) {
|
if (match && match[1]) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user