Fix zap alert

fixes #158
This commit is contained in:
kieran 2024-07-11 11:24:35 +01:00
parent 65fdc4d396
commit 4292b26e4b
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

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;
}