Skip to content

Average is NaN with 0 solves #2

@YTCuber

Description

@YTCuber

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions