forked from Kieran/zap.stream
fix: filter by goal id
This commit is contained in:
parent
ac0940d53a
commit
cdc0204eb1
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user