fix: empty numeric storage entries show up as 0

This commit is contained in:
Victor Oliva
2026-03-25 12:33:36 +01:00
parent 5a03f7511e
commit 558d315f3d
2 changed files with 2 additions and 2 deletions

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`

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>
}