diff --git a/src/hooks/cashu/useWalletTransactions.ts b/src/hooks/cashu/useWalletTransactions.ts index bad9d25..5ef7a97 100644 --- a/src/hooks/cashu/useWalletTransactions.ts +++ b/src/hooks/cashu/useWalletTransactions.ts @@ -224,7 +224,7 @@ export function useWalletTransactions({ const handleSend = useCallback(async () => { if (!coco) return; - if (!sendAmount && !lightningInvoice && !lightningAddressInput) { + if (!sendAmount && !lightningInvoice && !lightningAddressInput && !pendingLightningAddress) { return; } @@ -291,6 +291,7 @@ export function useWalletTransactions({ setLightningAddressInput(''); setLightningAddressAmount(''); } catch (err) { + console.error('Payment error:', err); toast({ variant: 'destructive', title: 'Payment Failed',