-
Notifications
You must be signed in to change notification settings - Fork 975
In payments status, show next contribution date #3833
Conversation
@@ -686,6 +686,21 @@ class PaymentsTab extends ImmutableComponent { | |||
</div> | |||
} | |||
|
|||
get nextReconcileDate () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should return null if ledgerData.get('reconcileStamp')
is not a number (may be undefined/null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think I check for this on line 694 – is that right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops i missed that, sorry
2883fe4
to
ba55077
Compare
// Afterwards balance should always !== 0 due to exchange rate fluctuations. | ||
const ledgerData = this.props.ledgerData | ||
const balance = Number(ledgerData.get('balance') || 0) | ||
if (balance === 0 || !ledgerData.get('reconcileStamp')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually i think this should show up even if the balance is 0. there is sometimes a long delay between when the wallet is funded and when it actually shows up as balance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i feel it – updated
ba55077
to
9f3e7b0
Compare
Fix #3801 Auditors: @bradleyrichter @diracdeltas Test Plan: 1. Open Brave to Preferences > Payments 2. Confirm the "status" column has "Next contribution: {date}" on the bottom
9f3e7b0
to
8e9684b
Compare
sweet thanks |
git rebase -i
to squash commits (if needed).Fix #3801
Auditors: @bradleyrichter @diracdeltas
Test Plan:
First run
Created a wallet
Funded 💰