mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
not rounding if mode is exact
This commit is contained in:
parent
a65f017431
commit
d089a773f7
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue