Skip to content

Commit 38cd6de

Browse files
chore: fixed goal percentage (#639)
1 parent fe2421a commit 38cd6de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/scenes/goals/suivi/GoalsChartPie.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const GoalPie = ({ title, records }) => {
157157
<Text className="text-cnam-primary-800 text-sm">Oui</Text>
158158
</View>
159159
<Text className={mergeClassNames(typography.textSmSemibold, "text-cnam-primary-800")}>
160-
{Math.round(sections?.[1]?.percentage || 0)}%
160+
{Math.round(sections?.[5]?.percentage || 0)}%
161161
</Text>
162162
</View>
163163
<View className="flex flex-row mt-2 items-center">
@@ -166,7 +166,7 @@ const GoalPie = ({ title, records }) => {
166166
</View>
167167

168168
<Text className={mergeClassNames(typography.textSmSemibold, "text-cnam-primary-800")}>
169-
{Math.round(sections?.[5]?.percentage || 0)}%
169+
{Math.round(sections?.[1]?.percentage || 0)}%
170170
</Text>
171171
</View>
172172
</View>

0 commit comments

Comments
 (0)