File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
governance/xc_admin/packages/xc_admin_frontend/components/tabs Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,17 @@ const Proposal = ({
278278 < div className = "font-bold" > Confirmed</ div >
279279 < div className = "text-lg" > { proposal . approved . length } </ div >
280280 </ div >
281- < div >
282- < div className = "font-bold" > Cancelled</ div >
283- < div className = "text-lg" > { proposal . cancelled . length } </ div >
284- </ div >
281+ { proposalStatus === 'active' || proposalStatus === 'rejected' ? (
282+ < div >
283+ < div className = "font-bold" > Rejected</ div >
284+ < div className = "text-lg" > { proposal . rejected . length } </ div >
285+ </ div >
286+ ) : (
287+ < div >
288+ < div className = "font-bold" > Cancelled</ div >
289+ < div className = "text-lg" > { proposal . cancelled . length } </ div >
290+ </ div >
291+ ) }
285292 < div >
286293 < div className = "font-bold" > Threshold</ div >
287294 < div className = "text-lg" >
You can’t perform that action at this time.
0 commit comments