Explorer: Hide token holders table when none found (#11605)

This commit is contained in:
Justin Starry
2020-08-13 12:59:34 +08:00
committed by GitHub
parent 9f0c20aa5d
commit 1277b3a8f6

View File

@ -40,6 +40,10 @@ export function TokenLargestAccountsCard({ pubkey }: { pubkey: PublicKey }) {
}
const accounts = largestAccounts.data.largest;
if (accounts.length === 0) {
return <ErrorCard text="No holders found" />;
}
return (
<>
<div className="card">