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

bug: When "expiry" is null, do not display "expiry" in payment details #2349

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

dethos
Copy link
Contributor

@dethos dethos commented Mar 22, 2024

Fixes: #2194

null is a valid value for the expiry field of payment records. Which means that when this value is not populated, payment.expirydate and payment.expirydateFrom will be generated from an invalid Date (new Date(null*1000), which renders to 1970-01-01 or 1969-12-31 depending on the timezone).

This PR hides the expiry line from the payment details, when there is no information about it, just like it is done with preimage.

Note: for the change to be effective, we need to execute make bundle. However, it is not clear whether a new generated bundle should be included with every PR or not.

@dni
Copy link
Member

dni commented Mar 25, 2024

thanks for the contribution! cACK

but something still wrong with the bundle, as of right now we still include it in prs

@dni dni requested review from arcbtc, dni and motorina0 March 25, 2024 07:47
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.35%. Comparing base (c101b85) to head (b9cc1a3).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2349      +/-   ##
==========================================
+ Coverage   58.34%   58.35%   +0.01%     
==========================================
  Files          61       61              
  Lines        9334     9334              
==========================================
+ Hits         5446     5447       +1     
+ Misses       3888     3887       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dethos
Copy link
Contributor Author

dethos commented Mar 25, 2024

thanks for the contribution! cACK

but something still wrong with the bundle, as of right now we still include it in prs

Fixed

@dni dni added this to the 0.12.5 milestone Mar 26, 2024
@dni dni added the bug Something isn't working label Mar 26, 2024
Copy link
Collaborator

@motorina0 motorina0 left a comment

Choose a reason for hiding this comment

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

LGTM

@dni dni merged commit 86821f4 into lnbits:dev Mar 26, 2024
23 checks passed
@dethos dethos deleted the 2194-wrong-expiry branch March 26, 2024 18:38
bitkarrot pushed a commit to bitkarrot/lnbits-legend that referenced this pull request Mar 28, 2024
lnbits#2349)

* Do not display expiry in payment details, when expiry is null
bitkarrot pushed a commit to bitkarrot/lnbits-legend that referenced this pull request Mar 29, 2024
lnbits#2349)

* Do not display expiry in payment details, when expiry is null
bitkarrot pushed a commit to bitkarrot/lnbits-legend that referenced this pull request Mar 29, 2024
lnbits#2349)

* Do not display expiry in payment details, when expiry is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Wrong "Expiry" in finalized service fee wallet
3 participants