Skip to content

Commit

Permalink
fix(ui-ux): update token contract address type to be a contract first (
Browse files Browse the repository at this point in the history
  • Loading branch information
lykalabrada authored Aug 10, 2023
1 parent 4b37d65 commit 6949d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/address/[aid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ function getAddressType({
switch (true) {
case isTokenPage:
return AddressType.Token;
case data.is_contract && data.token === null:
return AddressType.Contract;
case data.token !== null:
case data.is_contract && data.token !== null:
return AddressType.TokenContract;
case data.is_contract:
return AddressType.Contract;
default:
return AddressType.Wallet;
}
Expand Down

0 comments on commit 6949d87

Please sign in to comment.