From e5e2b7696a54fb878f684d89bb21422564316a30 Mon Sep 17 00:00:00 2001 From: Mario Pino Date: Tue, 10 Dec 2019 13:59:44 +0100 Subject: [PATCH] Display Deposit Period End Date correctly for proposals in deposit period (#181) * Return proposal.voting_end_time in deposit period * Return deposit_end_time instead --- lib/reducers/cosmosV0-reducers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reducers/cosmosV0-reducers.js b/lib/reducers/cosmosV0-reducers.js index 6c3fc78b64..c89ec6f18c 100644 --- a/lib/reducers/cosmosV0-reducers.js +++ b/lib/reducers/cosmosV0-reducers.js @@ -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