File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/components/client/campaigns Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default function CampaignProgress({
79
79
const { t } = useTranslation ( 'campaigns' )
80
80
const raisedSafe = Math . max ( 0 , raised )
81
81
const targetSafe = Math . max ( 0 , target )
82
- const percentage = Math . ceil ( ( raisedSafe / targetSafe ) * 100 )
82
+ const percentage = Math . floor ( ( raisedSafe / targetSafe ) * 100 )
83
83
const progressBarWidth = Math . min ( percentage , 100 )
84
84
85
85
const progressBarColorMap = {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default function CampaignStateSelect({ name = 'state' }) {
23
23
</ MenuItem >
24
24
{ Object . values ( CampaignState ) . map ( ( value , index ) => (
25
25
< MenuItem key = { index } value = { value } >
26
- { value }
26
+ { t ( `campaigns:campaign-status. ${ value } ` ) }
27
27
</ MenuItem >
28
28
) ) }
29
29
</ Select >
You can’t perform that action at this time.
0 commit comments