scrollable manual zap, handle undef target

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

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

View File

@ -146,7 +146,7 @@ export function ZapDialog({ target, children, className }: ZapDialogProps) {
</DialogDescription>
</DialogHeader>
{invoice ? (
<div className="space-y-6">
<div className="space-y-6 overflow-y-auto max-h-[calc(100vh-200px)] p-1">
{/* Payment amount display */}
<div className="text-center">
<div className="text-2xl font-bold">{amount} sats</div>