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

View File

@ -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]);