Updated the level to be out of its total and not 9.0
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user