Skip to content

Commit

Permalink
[fix][619] logic check receive token firstly (#3605)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
TranTrungTien authored Jul 10, 2024
1 parent dbf346f commit 76b7ffa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76b7ffa

Please sign in to comment.