fix: filter by valid zaps

This commit is contained in:
Alejandro Gomez 2023-06-25 18:40:58 +02:00
parent d9cf7e4236
commit afd8313ea2
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

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