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

@ -65,7 +65,7 @@ export default function NoteFooter(props: NoteFooterProps) {
type: "language",
});
const zapTotal = zaps.reduce((acc, z) => acc + z.amount, 0);
const didZap = zaps.some(a => a.zapper === login);
const didZap = zaps.some(a => a.sender === login);
const longPress = useLongPress(
e => {
e.stopPropagation();