Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes annoying qr popup on parsing LNURL withdraw receive in wallet #2230

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

arcbtc
Copy link
Member

@arcbtc arcbtc commented Feb 1, 2024

No description provided.

@dni
Copy link
Member

dni commented Feb 5, 2024

i cannot really tell what the issue is, can you provide a screenshot or something what the problem is?

Copy link
Member

@dni dni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still going to approve it, despite missing some context, seems simple enough

@@ -569,7 +569,10 @@ <h6 class="text-subtitle1 q-mt-none q-mb-sm">
></q-spinner>
</q-form>
</q-card>
<q-card v-else class="q-pa-lg q-pt-xl lnbits__dialog-card">
<q-card
v-else-if="receive.paymentReq && receive.lnurl == null"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the corresponding v-if is:

        <q-card
          v-if="!receive.paymentReq"

so receive.paymentReq is not required in this condition

Copy link
Member Author

@arcbtc arcbtc Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats for the parse card in the dialogue

@@ -569,7 +569,10 @@ <h6 class="text-subtitle1 q-mt-none q-mb-sm">
></q-spinner>
</q-form>
</q-card>
<q-card v-else class="q-pa-lg q-pt-xl lnbits__dialog-card">
<q-card
v-else-if="receive.paymentReq && receive.lnurl == null"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
v-else-if="receive.paymentReq && receive.lnurl == null"
v-else-if="receive.lnurl == null"

Copy link
Collaborator

@motorina0 motorina0 Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if this condition is false: receive.lnurl == null (ie. receive.lnurl != null)?

Copy link
Member Author

@arcbtc arcbtc Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The invoice QR code card in the dialogue should only fire creating an invoice, not when an invoice is parsed out of an lnurl-withdraw.
Making false would mean the opposite, and would e even worse than before.

@arcbtc arcbtc merged commit f07b407 into dev Feb 7, 2024
22 checks passed
@arcbtc arcbtc deleted the withdrawqr branch February 7, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants