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:
parent
dbd3b6b53a
commit
9e791ec9b7
|
@ -195,14 +195,14 @@ export function AccountHeader({
|
||||||
let token;
|
let token;
|
||||||
let unverified = false;
|
let unverified = false;
|
||||||
|
|
||||||
if (tokenDetails) {
|
if (data?.nftData) {
|
||||||
token = tokenDetails;
|
|
||||||
} else {
|
|
||||||
token = {
|
token = {
|
||||||
logoURI: data?.nftData?.json?.image,
|
logoURI: data?.nftData?.json?.image,
|
||||||
name: data?.nftData?.json?.name,
|
name: data?.nftData?.json?.name,
|
||||||
};
|
};
|
||||||
unverified = true;
|
unverified = true;
|
||||||
|
} else if (tokenDetails) {
|
||||||
|
token = tokenDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue