From a48734351dceed7744500eca8a14c833528c3803 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sun, 1 Jan 2023 23:05:20 -0500 Subject: [PATCH] Convert ascending in localStorage to a boolean --- src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index d6e6ec0..5fee605 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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");