Skip to content

Commit

Permalink
Display Deposit Period End Date correctly for proposals in deposit pe…
Browse files Browse the repository at this point in the history
…riod (#181)

* Return proposal.voting_end_time in deposit period

* Return deposit_end_time instead
  • Loading branch information
mariopino authored and colw committed Dec 10, 2019
1 parent ed40d3b commit e5e2b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function proposalBeginTime(proposal) {
function proposalEndTime(proposal) {
switch (proposal.proposal_status.toLowerCase()) {
case 'depositperiod':
return proposal.voting_start_time
return proposal.deposit_end_time
case 'votingperiod':
// the end time lives in the past already if the proposal is finalized
// eslint-disable-next-line no-fallthrough
Expand Down

0 comments on commit e5e2b76

Please sign in to comment.