Fix zap alert

fixes #158
This commit is contained in:
2024-07-11 11:24:35 +01:00
parent 65fdc4d396
commit 4292b26e4b

View File

@ -48,7 +48,8 @@ export function ZapAlerts({ link }: { link: NostrLink }) {
useEffect(() => {
if (!zap) return;
if (mutedPubkeys.has(zap?.sender ?? "")) {
const senderLink = NostrLink.publicKey(zap?.sender ?? "");
if (mutedPubkeys.some(a => a.equals(senderLink))) {
return;
}