Skip to content

Commit

Permalink
Merge pull request #313 from snake-eaterr/debits-ui
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
snake-eaterr authored Sep 28, 2024
2 parents 148ad57 + 287354e commit 13135c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/Modals/DebitRequestModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
});
Expand Down

0 comments on commit 13135c5

Please sign in to comment.