bug: send sats flow skip to invoice not working
This commit is contained in:
parent
cd4dcbd0a2
commit
9b85f825e5
@ -53,7 +53,7 @@ export default function SendSats(props: SendSatsProps) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const [handler, setHandler] = useState<LNURL>();
|
const [handler, setHandler] = useState<LNURL>();
|
||||||
const [invoice, setInvoice] = useState(props.invoice);
|
const [invoice, setInvoice] = useState<string>();
|
||||||
const [amount, setAmount] = useState<number>(defaultZapAmount);
|
const [amount, setAmount] = useState<number>(defaultZapAmount);
|
||||||
const [customAmount, setCustomAmount] = useState<number>();
|
const [customAmount, setCustomAmount] = useState<number>();
|
||||||
const [comment, setComment] = useState<string>();
|
const [comment, setComment] = useState<string>();
|
||||||
@ -74,7 +74,7 @@ export default function SendSats(props: SendSatsProps) {
|
|||||||
setAmount(defaultZapAmount);
|
setAmount(defaultZapAmount);
|
||||||
setComment(undefined);
|
setComment(undefined);
|
||||||
setZapType(ZapType.PublicZap);
|
setZapType(ZapType.PublicZap);
|
||||||
setInvoice(undefined);
|
setInvoice(props.invoice);
|
||||||
setSuccess(undefined);
|
setSuccess(undefined);
|
||||||
}
|
}
|
||||||
}, [props.show]);
|
}, [props.show]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user