Also lowercase query in highscorePage.

This commit is contained in:
2020-10-11 19:26:08 +02:00
committed by KevinMidboe
parent 25823540ff
commit 432d9211b2

View File

@@ -53,6 +53,7 @@ export default {
let val = this.filterInput;
if (val.length) {
val = val.toLowerCase()
const nameIncludesString = (person) => person.name.toLowerCase().includes(val);
highscore = highscore.filter(nameIncludesString)
}