mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-26 20:49:22 +00:00
scrollable manual zap, handle undef target
This commit is contained in:
parent
9ed8676d17
commit
c98a6bbf64
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user