mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 08:47:23 +00:00
silent return bug on lnaddress payments
This commit is contained in:
1 parent
ea57135d1e
commit
6162217ce9
1 file changed
+2
-1
@@ -224,7 +224,7 @@ export function useWalletTransactions({
|
|||||||
const handleSend = useCallback(async () => {
|
const handleSend = useCallback(async () => {
|
||||||
if (!coco) return;
|
if (!coco) return;
|
||||||
|
|
||||||
if (!sendAmount && !lightningInvoice && !lightningAddressInput) {
|
if (!sendAmount && !lightningInvoice && !lightningAddressInput && !pendingLightningAddress) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -291,6 +291,7 @@ export function useWalletTransactions({
|
|||||||
setLightningAddressInput('');
|
setLightningAddressInput('');
|
||||||
setLightningAddressAmount('');
|
setLightningAddressAmount('');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.error('Payment error:', err);
|
||||||
toast({
|
toast({
|
||||||
variant: 'destructive',
|
variant: 'destructive',
|
||||||
title: 'Payment Failed',
|
title: 'Payment Failed',
|
||||||
|
|||||||
Reference in new issue
Block a user