From 3a6eb34fc1b2f2916555c5a8d91ae29d72250646 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 26 Dec 2023 09:06:19 +0200 Subject: [PATCH] fix: cached proposal list item status styles --- .../proposalList/ProposalListItemFinalStatus.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/proposals/components/proposalList/ProposalListItemFinalStatus.tsx b/src/proposals/components/proposalList/ProposalListItemFinalStatus.tsx index 529cda90..6bc989cc 100644 --- a/src/proposals/components/proposalList/ProposalListItemFinalStatus.tsx +++ b/src/proposals/components/proposalList/ProposalListItemFinalStatus.tsx @@ -23,11 +23,14 @@ export function ProposalListItemFinalStatus({ const color = status === ProposalState.Defeated ? '$mainAgainst' - : status === ProposalState.Executed + : status === ProposalState.Executed || status === ProposalState.Succeed ? '$mainFor' : '$disabled'; - const icon = status === ProposalState.Executed ? SuccessIcon : ErrorIcon; + const icon = + status === ProposalState.Executed || status === ProposalState.Succeed + ? SuccessIcon + : ErrorIcon; return (