From 9e791ec9b766a4e328d386a022a95dbc308f3795 Mon Sep 17 00:00:00 2001 From: Jacob Creech <82475023+jacobcreech@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:47:50 -0500 Subject: [PATCH] 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. --- explorer/src/pages/AccountDetailsPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer/src/pages/AccountDetailsPage.tsx b/explorer/src/pages/AccountDetailsPage.tsx index 4c3c881011..d95bbbd73f 100644 --- a/explorer/src/pages/AccountDetailsPage.tsx +++ b/explorer/src/pages/AccountDetailsPage.tsx @@ -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 (