Fixed casing issue when filtering highscore.

This commit is contained in:
2020-09-11 10:01:48 +02:00
parent 1f44b7bf8e
commit 06c2d35580

View File

@@ -86,6 +86,7 @@ export default {
watch: {
highscoreFilter(val) {
if (val.length) {
val = val.toLowerCase();
this.highscore = this.highscoreResponse.filter(person => person.name.toLowerCase().includes(val))
} else {
this.highscore = this.highscoreResponse