diff --git a/src/views/account/Grades/Graph/GradesAverage.tsx b/src/views/account/Grades/Graph/GradesAverage.tsx index 80be5ac8c..ddf60fd94 100644 --- a/src/views/account/Grades/Graph/GradesAverage.tsx +++ b/src/views/account/Grades/Graph/GradesAverage.tsx @@ -122,7 +122,10 @@ const GradesAverageGraph: React.FC = ({ }} activeScale={0.975} weight="light" - onPress={() => setShowDetails(!showDetails)} + onPress={() => { + if (classAvg !== 0) { + setShowDetails(!showDetails); + }}} > {hLength > 0 && ( @@ -230,13 +233,19 @@ const GradesAverageGraph: React.FC = ({ style={[styles.gradeValue]} layout={animPapillon(LinearTransition)} > - - - /20 - + {classAvg === 0 ? ( + Inconnue + ) : ( + <> + + + /20 + + + )}