From a8c8a2acaa706d3a8160d98efaf3d0517f879146 Mon Sep 17 00:00:00 2001 From: Joseph Chalabi Date: Tue, 24 Dec 2024 00:35:17 -0700 Subject: [PATCH] fix: show failure status when executor result is failure --- components/groups/components/groupControls.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/groups/components/groupControls.tsx b/components/groups/components/groupControls.tsx index 9fa6c51..5b1ef78 100644 --- a/components/groups/components/groupControls.tsx +++ b/components/groups/components/groupControls.tsx @@ -378,9 +378,11 @@ export default function GroupControls({ } const proposalTally = tallies.find(t => t.proposalId === proposal.id)?.tally; - + console.log(proposal.executor_result.toString()); let status = 'Pending'; - if (proposal.status.toString() === 'PROPOSAL_STATUS_ACCEPTED') { + if (proposal.executor_result.toString() === 'PROPOSAL_EXECUTOR_RESULT_FAILURE') { + status = 'Failure'; + } else if (proposal.status.toString() === 'PROPOSAL_STATUS_ACCEPTED') { status = 'Execute'; } else if (proposal.status.toString() === 'PROPOSAL_STATUS_CLOSED') { status = 'Executed';