From 9b85f825e5acdd116e11d71dfa172c0ec1b5f02d Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 9 Mar 2023 12:34:50 +0000 Subject: [PATCH] bug: send sats flow skip to invoice not working --- packages/app/src/Element/SendSats.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/Element/SendSats.tsx b/packages/app/src/Element/SendSats.tsx index c0d8f25..ca87536 100644 --- a/packages/app/src/Element/SendSats.tsx +++ b/packages/app/src/Element/SendSats.tsx @@ -53,7 +53,7 @@ export default function SendSats(props: SendSatsProps) { }; const [handler, setHandler] = useState(); - const [invoice, setInvoice] = useState(props.invoice); + const [invoice, setInvoice] = useState(); const [amount, setAmount] = useState(defaultZapAmount); const [customAmount, setCustomAmount] = useState(); const [comment, setComment] = useState(); @@ -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]);