Skip to content

Commit

Permalink
Fix lite proposal status in proposal list page (#680)
Browse files Browse the repository at this point in the history
Signed-off-by: Manank Patni <[email protected]>
  • Loading branch information
Man-Jain authored Oct 1, 2023
1 parent ff763e8 commit 8cc6f8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/lite/explorer/hooks/usePolls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 8cc6f8f

Please sign in to comment.