Explorer: Hide token holders table when none found (#11605)
This commit is contained in:
@ -40,6 +40,10 @@ export function TokenLargestAccountsCard({ pubkey }: { pubkey: PublicKey }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const accounts = largestAccounts.data.largest;
|
const accounts = largestAccounts.data.largest;
|
||||||
|
if (accounts.length === 0) {
|
||||||
|
return <ErrorCard text="No holders found" />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="card">
|
<div className="card">
|
||||||
|
Reference in New Issue
Block a user