WandererXII / lishogi

☗ lishogi.org: the forever free, adless and open source shogi server forked from lichess.org ☗
https://lishogi.org
GNU Affero General Public License v3.0
263 stars 40 forks source link

Update ratingDistribution.js #773

Closed The-User-Python closed 7 months ago

The-User-Python commented 7 months ago

The new code includes a check for data.myRating before adding the plot line. This check ensures that if data.myRating is null or undefined, the plot line won't be added. This should prevent potential issues related to null or undefined values.

WandererXII commented 7 months ago

If it works, don't fix it. If there is an issue with distribution.js I'm not aware of, please explain how this fixes it.