fix: match wallet + dapp ordering with ft metadata on Explorer (#26751)

fix: match wallet + dapp ordering with ft metadata

Previously if token metadata existed from the legacy token-list, that trumped any other metadata displayed. This created a problem where tokens that inserted data in token-list could not longer update their token metadata even if they still owned the mint authority. Wallets such as Solflare and Phantom also take on-chain metadata first over legacy token-list metadata, so it is good to match them.
This commit is contained in:
Jacob Creech 2022-07-25 16:47:50 -05:00 committed by GitHub
parent dbd3b6b53a
commit 9e791ec9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -195,14 +195,14 @@ export function AccountHeader({
let token;
let unverified = false;
if (tokenDetails) {
token = tokenDetails;
} else {
if (data?.nftData) {
token = {
logoURI: data?.nftData?.json?.image,
name: data?.nftData?.json?.name,
};
unverified = true;
} else if (tokenDetails) {
token = tokenDetails;
}
return (