diff --git a/explorer/src/pages/inspector/AddressWithContext.tsx b/explorer/src/pages/inspector/AddressWithContext.tsx
index 2cf027ef1d..a943086066 100644
--- a/explorer/src/pages/inspector/AddressWithContext.tsx
+++ b/explorer/src/pages/inspector/AddressWithContext.tsx
@@ -81,21 +81,21 @@ function AccountInfo({
const errorMessage = validator && validator(info.data);
if (errorMessage) return {errorMessage};
- if (info.data.details?.executable) {
- return Executable Program;
+ if (!info.data.details) {
+ return Account doesn't exist;
}
- const owner = info.data.details?.owner;
- const ownerAddress = owner?.toBase58();
- const ownerLabel = ownerAddress && addressLabel(ownerAddress, cluster);
+ const owner = info.data.details.owner;
+ const ownerAddress = owner.toBase58();
+ const ownerLabel = addressLabel(ownerAddress, cluster);
return (
- {ownerAddress
- ? `Owned by ${
- ownerLabel || ownerAddress
- }. Balance is ${lamportsToSolString(info.data.lamports)} SOL`
- : "Account doesn't exist"}
+ {`Owned by ${ownerLabel || ownerAddress}.`}
+ {` Balance is ${lamportsToSolString(info.data.lamports)} SOL.`}
+ {` Size is ${new Intl.NumberFormat("en-US").format(
+ info.data.details.space
+ )} byte(s).`}
);
}