Fix owned token accumulation UI bug in explorer (#11466)

This commit is contained in:
Justin Starry 2020-08-08 15:34:59 +08:00 committed by GitHub
parent c7eba80836
commit 40656911a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
}
}