mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-06 07:13:39 +00:00
Convert ascending in localStorage to a boolean
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user