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

Commit

Permalink
Merge pull request #6933 from willy-b/issue-6897
Browse files Browse the repository at this point in the history
only display time range in statement PDF when range is available (#6896, #6897)
  • Loading branch information
bsclifton authored Feb 16, 2017
2 parents 0d3dacf + a9e3f27 commit 8222db4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion js/about/contributionStatement.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,19 @@ class ContributionStatement extends ImmutableComponent {
return pages
}

get contributionDateRangeString () {
if (this.lastContributionHumanFormattedDate !== '') {
return (this.lastContributionHumanFormattedDate + ' - ' + this.thisContributionHumanFormattedDate)
}
return null
}

ContributionStatementDetailTable (page, pageIdx, totalPages) {
return (
<div className='contributionStatementDetailTableContainer'>
<div>
<span className='statementDatesCoveredText pull-right'>
{ this.lastContributionHumanFormattedDate } - { this.thisContributionHumanFormattedDate }
{ this.contributionDateRangeString }
</span>
<table className='contributionStatementDetailTable'>
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion tools/lib/utilApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ app.on('ready', () => {
cleanUserData(process.argv[3])
break
case 'addSimulatedLedgerTransactions':
addSimulatedLedgerTransactions(process.argv[3])
addSimulatedLedgerTransactions(parseInt(process.argv[3]))
break
case 'addSimulatedSynopsisVisits':
addSimulatedSynopsisVisits(process.argv[3])
Expand Down
2 changes: 1 addition & 1 deletion tools/utilAppRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function runUtilApp (cmd, file, stdioOptions) {
}
cmd = cmd.split(' ')
if (process.env.NODE_ENV === 'development') {
cmd.push('--user-data-dir=brave-development')
cmd.push('--user-data-dir=../../../brave-development')
}
const utilApp = proc.spawnSync('electron', [utilAppDir].concat(cmd), options)
if (utilApp.error) {
Expand Down

0 comments on commit 8222db4

Please sign in to comment.