Fix syntax error
This commit is contained in:
parent
c5390c3909
commit
ae1da8eac7
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ function predictSpeed(goalDate, goalNumber, currentNumber) {
|
|||
let daysRemaining
|
||||
if (timeRemaining >= 0) {
|
||||
daysRemaining = Math.ceil(timeRemaining / (1000 * 60 * 60 * 24));
|
||||
else {
|
||||
} else {
|
||||
daysRemaining = math.floor(timeRemaining / (1000 * 60 * 60 * 24));
|
||||
}
|
||||
let neededSpeed = (goalNumber - currentNumber) / Math.abs(daysRemaining);
|
||||
|
|
Loading…
Reference in a new issue