fix: filter by valid zaps

This commit is contained in:
Alejandro Gomez
2023-06-25 18:40:58 +02:00
parent d9cf7e4236
commit afd8313ea2

View File

@ -80,7 +80,7 @@ export function LiveChat({
const zaps = events const zaps = events
.filter((ev) => ev.kind === EventKind.ZapReceipt) .filter((ev) => ev.kind === EventKind.ZapReceipt)
.map((ev) => parseZap(ev, System.ProfileLoader.Cache)) .map((ev) => parseZap(ev, System.ProfileLoader.Cache))
.filter((z) => z); .filter((z) => z && z.valid);
return ( return (
<div className="live-chat"> <div className="live-chat">
{(options?.showHeader ?? true) && ( {(options?.showHeader ?? true) && (