bug: send sats flow skip to invoice not working

This commit is contained in:
Kieran 2023-03-09 12:34:50 +00:00
parent cd4dcbd0a2
commit 9b85f825e5
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ export default function SendSats(props: SendSatsProps) {
};
const [handler, setHandler] = useState<LNURL>();
const [invoice, setInvoice] = useState(props.invoice);
const [invoice, setInvoice] = useState<string>();
const [amount, setAmount] = useState<number>(defaultZapAmount);
const [customAmount, setCustomAmount] = useState<number>();
const [comment, setComment] = useState<string>();
@ -74,7 +74,7 @@ export default function SendSats(props: SendSatsProps) {
setAmount(defaultZapAmount);
setComment(undefined);
setZapType(ZapType.PublicZap);
setInvoice(undefined);
setInvoice(props.invoice);
setSuccess(undefined);
}
}, [props.show]);