Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

In payments status, show next contribution date #3833

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

ayumi
Copy link
Contributor

@ayumi ayumi commented Sep 9, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

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

First run
screen shot 2016-09-08 at 16 55 43
Created a wallet
screen shot 2016-09-08 at 16 55 54
Funded 💰
screen shot 2016-09-08 at 16 55 06

@@ -686,6 +686,21 @@ class PaymentsTab extends ImmutableComponent {
</div>
}

get nextReconcileDate () {
Copy link
Member

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)

Copy link
Contributor Author

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?

Copy link
Member

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

@diracdeltas diracdeltas self-assigned this Sep 9, 2016
@ayumi ayumi force-pushed the feature/ledger-contribution-day-notice branch from 2883fe4 to ba55077 Compare September 9, 2016 00:44
// 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')) {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i feel it – updated

@ayumi ayumi force-pushed the feature/ledger-contribution-day-notice branch from ba55077 to 9f3e7b0 Compare September 9, 2016 00:55
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
@ayumi ayumi force-pushed the feature/ledger-contribution-day-notice branch from 9f3e7b0 to 8e9684b Compare September 9, 2016 00:55
@diracdeltas
Copy link
Member

sweet thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants