Updated the level to be out of its total and not 9.0

This commit is contained in:
Tiago Ribeiro
2024-03-23 18:30:43 +00:00
parent bd74313bd5
commit d9fce10538

View File

@@ -15,7 +15,7 @@ export const RadialResult = ({module, score, total, png}: ModuleScore) => (
<Text style={styles.textBold}> <Text style={styles.textBold}>
{module === "level" ? Math.floor(score) : calculateBandScore(score, total, module.toLowerCase() as Module | "overall", "general")} {module === "level" ? Math.floor(score) : calculateBandScore(score, total, module.toLowerCase() as Module | "overall", "general")}
</Text> </Text>
<Text style={{fontSize: 8}}>out of 9.0</Text> <Text style={{fontSize: 8}}>out of {module === "level" ? total : "9.0"}</Text>
</View> </View>
</View> </View>
); );