diff --git a/squarenotsquare/src/realm/repos/ScoreRepo.js b/squarenotsquare/src/realm/repos/ScoreRepo.js index 9138270..41e75a0 100644 --- a/squarenotsquare/src/realm/repos/ScoreRepo.js +++ b/squarenotsquare/src/realm/repos/ScoreRepo.js @@ -15,7 +15,7 @@ export default class ScoreRepo { this.scoreCache.sort((a, b) => b.value - a.value); if (this.scoreCache.length > 99) { - this.scoreCache = this.scoreCache.slice(99, this.scoreCache.length - 1); + this.scoreCache = this.scoreCache.slice(0, 100); } }