fix: empty numeric storage entries show up as 0
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user