From 76b7ffa6d1bda873c6c1226cc6af6378a8451311 Mon Sep 17 00:00:00 2001 From: TranTrungTien <71311738+TranTrungTien@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:17:35 +0700 Subject: [PATCH] [fix][619] logic check receive token firstly (#3605) * resolved conflict * resolved conflict 2 * remove trash code * format code * update query and logic for warning address * update nested if else * resolved conflict * update: query cosmos and evm * update: new query account info * update: rename variable * update: new UI for warning address * fix: evm and cosmos warning * fix: remove redundant character * update: logic check address type * update: logic check receive token firstly --- .../pages/account/account-detail/account-detail.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/pages/account/account-detail/account-detail.component.ts b/src/app/pages/account/account-detail/account-detail.component.ts index 09f2a6c4b..25ceee14a 100644 --- a/src/app/pages/account/account-detail/account-detail.component.ts +++ b/src/app/pages/account/account-detail/account-detail.component.ts @@ -151,14 +151,13 @@ export class AccountDetailComponent implements OnInit, OnDestroy { const { type, sequence, pubkey = {} } = account[0] || {}; if (!type && !sequence) return; - console.log( type, sequence, pubkey); if (type === EVM_ACCOUNT_MESSAGE_TYPE) { this.accountType = 'evm'; this.tooltipCosmosText = COSMOS_WARNING_MESSAGE; return; } - if(!Object.keys(pubkey)?.length) { + if(!pubkey || !Object.keys(pubkey)?.length) { this.accountType = 'evm'; this.tooltipCosmosText = COSMOS_WARNING_MESSAGE; return;