fix: filter by valid zaps
This commit is contained in:
@ -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) && (
|
||||||
|
Reference in New Issue
Block a user