Convert ascending in localStorage to a boolean

This commit is contained in:
Dave Gallant
2023-01-01 23:05:20 -05:00
parent 29a96ce5fa
commit a48734351d

View File

@@ -19,7 +19,8 @@ export default {
},
mounted() {
this.sortColumn = localStorage.getItem("sortColumn") || "score";
this.ascending = localStorage.getItem("ascending") || true;
this.ascending =
localStorage.getItem("ascending") === "false" ? false : true;
this.isLoading = true;
this.fetchDeals();
Mousetrap.bind("/", this.focusSearch, "keyup");