From df13a248a31589a2b29489ff44d7b2baa45ccced Mon Sep 17 00:00:00 2001 From: Manank Patni Date: Sun, 1 Oct 2023 05:31:07 +0530 Subject: [PATCH] Fix lite proposal status Signed-off-by: Manank Patni --- src/modules/lite/explorer/hooks/usePolls.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/lite/explorer/hooks/usePolls.tsx b/src/modules/lite/explorer/hooks/usePolls.tsx index ee5ecc49..2b9efcab 100644 --- a/src/modules/lite/explorer/hooks/usePolls.tsx +++ b/src/modules/lite/explorer/hooks/usePolls.tsx @@ -30,12 +30,12 @@ export const usePolls = (id: any) => { return } - // @TODO Add functinolity if needed for card in proposal list - // communityPolls.map(community => { - // community.timeFormatted = isProposalActive(Number(community.endTime)) - // community.isActive = !community.timeFormatted.includes("ago") ? ProposalStatus.ACTIVE : ProposalStatus.CLOSED - // }) + communityPolls.map(community => { + community.timeFormatted = isProposalActive(Number(community.endTime)) + community.isActive = !community.timeFormatted.includes("ago") ? ProposalStatus.ACTIVE : ProposalStatus.CLOSED + }) + // @TODO Add functinolity if needed for card in proposal list // communityPolls.forEach(async poll => { // if (poll) { // await fetch(`${getEnv(EnvKey.REACT_APP_LITE_API_URL)}/choices/${poll._id}/votes`).then(async response => {