chore: improve zapper validation

This commit is contained in:
2023-03-05 16:58:34 +00:00
parent d959a492b1
commit c702d1b760
8 changed files with 89 additions and 79 deletions

View File

@ -115,7 +115,7 @@ export default function Note(props: NoteProps) {
const zaps = useMemo(() => {
const sortedZaps = getReactions(related, ev.Id, EventKind.ZapReceipt)
.map(parseZap)
.filter(z => z.valid && z.zapper !== ev.PubKey);
.filter(z => z.valid && z.sender !== ev.PubKey);
sortedZaps.sort((a, b) => b.amount - a.amount);
return sortedZaps;
}, [related]);