scrollable manual zap, handle undef target

This commit is contained in:
Chad Curtis committed 2025-07-14 01:51:48 +00:00
1 parent 9ed8676d17
commit c98a6bbf64
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ export function ZapButton({
);
// Don't show zap button if user is not logged in, is the author, or author has no lightning address
if (!user || user.pubkey === target.pubkey || (!author?.metadata?.lud16 && !author?.metadata?.lud06)) {
if (!user || !target || user.pubkey === target.pubkey || (!author?.metadata?.lud16 && !author?.metadata?.lud06)) {
return null;
}