fraz3alpha / running-challenges

An extension to allow you to complete challenges with your parkrun results
Other
36 stars 20 forks source link

Fix JavaScript error when viewing a parkrunner with no runs recorded. #383

Closed LukeWoodward closed 1 year ago

LukeWoodward commented 1 year ago

Currently the extension hits a JavaScript error if the parkrunner being viewed hasn't recorded any runs. The error is being thrown from within a console.log statement: this PR fixes the issue by skipping this console.log statement if no runs have been recorded.

fraz3alpha commented 1 year ago

Changes pulled into the branch used in https://github.com/fraz3alpha/running-challenges/pull/393 and merged, thanks @LukeWoodward !