fix: filter by goal id

This commit is contained in:
Alejandro Gomez 2023-07-06 23:49:13 +02:00
parent ac0940d53a
commit cdc0204eb1
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -27,7 +27,7 @@ export function Goal({
const soFar = useMemo(() => {
return zaps
.filter((z) => z.receiver === ev.pubkey)
.filter((z) => z.receiver === ev.pubkey && z.event === ev.id)
.reduce((acc, z) => acc + z.amount, 0);
}, [zaps]);