fix: do not ask for NFC if not needed (#3145)

This commit is contained in:
Tiago Vasconcelos
2025-05-05 21:23:32 +01:00
committed by GitHub
parent f92ae8bae1
commit 8458b4d84b
2 changed files with 4 additions and 2 deletions

View File

@@ -639,7 +639,7 @@
>
<span
v-if="receive.lnurl"
v-text="$t('withdraw_from') + receive.lnurl.domain"
v-text="`${$t('withdraw_from')} ${receive.lnurl.domain}`"
></span>
<span v-else v-text="$t('create_invoice')"></span>
</q-btn>

View File

@@ -261,7 +261,9 @@ window.WalletPageLogic = {
this.receive.paymentReq = response.data.bolt11
this.receive.amountMsat = response.data.amount
this.receive.paymentHash = response.data.payment_hash
this.readNfcTag()
if (!this.receive.lnurl) {
this.readNfcTag()
}
// TODO: lnurl_callback and lnurl_response
// WITHDRAW
if (response.data.lnurl_response !== null) {