Browse Source

fix an issue where local score cache was resized incorrectly

pull/11/head
Tim Glasgow 2 years ago
parent
commit
0c44f6c5b1
  1. 2
      squarenotsquare/src/realm/repos/ScoreRepo.js

2
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);
}
}

Loading…
Cancel
Save