Skip to content

NaN on HitRatio #2

@gosdenj

Description

@gosdenj

Hello,

Not really an issue, but a quick fix to remove the "NaN" display for hit ratio (and a couple of others) is to add add a quick test for the result is a number before the Math.round() function.

e.g.

return (!isNaN(hitRatio) ? Math.round(hitRatio) : 0 );

Fantastic work BTW ! ;o)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions