Booligoosh / rubiks-time

A clean, modern Rubik's cube timer
https://booligoosh.github.io/rubiks-time/
3 stars 0 forks source link

Average is NaN with 0 solves #2

Open YTCuber opened 7 years ago

YTCuber commented 7 years ago

To reproduce, clear all solves. Click on "Stats", then click on "More Stats". It shows you "Average - NaN:NaN.NaN".

While this is understandable for any JavaScript programmer, any other person will think, that the timer is broken.

Possible solutions are displaying "DNF", "00:00.00" or "can not calculate". You can do this in averageOfArray (line 260 in script.js) by checking like if(array.length<1)return"DNF".