From 287354ed02c7de0d97aced62144ad971ae8d9ab7 Mon Sep 17 00:00:00 2001 From: Mothana Date: Sat, 28 Sep 2024 16:30:47 +0400 Subject: [PATCH] fix --- src/Components/Modals/DebitRequestModal/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Components/Modals/DebitRequestModal/index.tsx b/src/Components/Modals/DebitRequestModal/index.tsx index 887f282..e08d397 100644 --- a/src/Components/Modals/DebitRequestModal/index.tsx +++ b/src/Components/Modals/DebitRequestModal/index.tsx @@ -67,6 +67,7 @@ export const DebitRequestModal = () => { } else { const { amount } = decodeInvoice(req.request.debit.invoice) setRequestAmount(amount.toString()) + return { request: req.request, source: spendSources.sources[req.sourceId] } } } else { @@ -115,9 +116,9 @@ export const DebitRequestModal = () => { pathname: "/send", state: parsed }) + dispatch(removeDebitRequest({ requestorNpub: currentRequest.request.npub, sourceId: currentRequest.source.id })) return } - console.log("rules to send", rules) const res = await (await getNostrClient(currentRequest.source.pasteField, currentRequest.source.keys)).AuthorizeDebit({ authorize_npub: currentRequest.request.npub, rules });