Fix editing amount on receive screen

This commit is contained in:
benthecarman
2024-01-13 12:58:19 +00:00
committed by Paul Miller
parent f3ef3140bb
commit 97591ee2b1

View File

@@ -175,6 +175,8 @@ export function Receive() {
setUnified("");
setPaymentTx(undefined);
setPaymentInvoice(undefined);
setError("");
setFlavor(state.preferredInvoiceType);
}
function openDetailsModal() {
@@ -352,7 +354,7 @@ export function Receive() {
<DefaultMain>
<Show when={receiveState() === "show"} fallback={<BackLink />}>
<BackButton
onClick={() => setReceiveState("edit")}
onClick={() => clearAll()}
title={i18n.t("receive.edit")}
showOnDesktop
/>