resolve send error in console
This commit is contained in:
parent
0d7bdaffd9
commit
b3293c751b
@ -1531,6 +1531,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