From 40656911a62ae41769ccc8a36e9d5c60c4b229e6 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sat, 8 Aug 2020 15:34:59 +0800 Subject: [PATCH] Fix owned token accumulation UI bug in explorer (#11466) --- explorer/src/components/account/OwnedTokensCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/components/account/OwnedTokensCard.tsx b/explorer/src/components/account/OwnedTokensCard.tsx index a7444b55c3..85c3bdf74e 100644 --- a/explorer/src/components/account/OwnedTokensCard.tsx +++ b/explorer/src/components/account/OwnedTokensCard.tsx @@ -50,7 +50,7 @@ export function OwnedTokensCard({ pubkey }: { pubkey: PublicKey }) { if (tokenInfo) { tokenInfo.amount += token.amount; } else { - mappedTokens.set(mintAddress, token); + mappedTokens.set(mintAddress, { ...token }); } }