not rounding if mode is exact

This commit is contained in:
Jack 2021-09-27 23:56:43 +01:00
parent a65f017431
commit d089a773f7

View file

@ -52,7 +52,7 @@ export function verify(result) {
} else if (requirementType == "acc") {
let accMode = Object.keys(requirementValue)[0];
if (accMode == "exact") {
if (Math.round(result.acc) != requirementValue.exact) {
if (result.acc != requirementValue.exact) {
requirementsMet = false;
failReasons.push(`Accuracy not ${requirementValue.exact}`);
}