fix: parse old zaps

This commit is contained in:
Alejandro Gomez
2023-02-04 10:48:21 +01:00
parent 677ca771c8
commit 0a056edcad
2 changed files with 10 additions and 7 deletions

View File

@ -63,7 +63,7 @@ export default function ProfilePage() {
: user?.website || "";
const zapFeed = useZapsFeed(id)
const zaps = useMemo(() => {
return zapFeed.store.notes.map(parseZap).filter(z => z.valid && z.p === id)
return zapFeed.store.notes.map(parseZap).filter(z => z.valid && z.p === id && !z.e)
}, [zapFeed.store.notes, id])
const zapsTotal = zaps.reduce((acc, z) => acc + z.amount, 0)