Merge pull request #125 from polkadot-api/vo/fix-empty-entries

fix: empty numeric storage entries show up as 0
This commit is contained in:
Victor Oliva
2026-03-25 12:41:28 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export const Events = () => {
>
{"event" in evt ? (
<Popover content={<EventPopover event={evt} />}>
<button className="w-full p-1 text-left text-card-foreground/80 hover:text-card-foreground/100">{`${evt.event.type}.${evt.event.value.type}`}</button>
<button className="w-full p-1 text-left text-card-foreground/80 hover:text-card-foreground">{`${evt.event.type}.${evt.event.value.type}`}</button>
</Popover>
) : (
`… ${evt.length} more`
+1 -1
View File
@@ -427,7 +427,7 @@ export const ValueDisplay: FC<{
return [codec, encodedValue] as const
}, [ctx, value, type])
if (!encodedValue) {
if (!encodedValue || value === undefined) {
return <div className="text-foreground/60">Empty</div>
}