agestaun / meteor

Meteorid Game
1 stars 0 forks source link

Fix timestampToSecondsAndMillis function from utils #7

Closed agestaun closed 1 year ago

agestaun commented 1 year ago

I saw that when the scores are 4091 and 4345, the function was returning 4.91 and 4.34. That means that in the scores list the 4.34 is better time (smaller) than the 4.91, because the function was removing the 0.

Need to fix this bug and very important to add unit tests to ensure it works properly.