From 52d9b5ea69e82bb2df0508dbf3571f07c46228f7 Mon Sep 17 00:00:00 2001 From: lcb931023 Date: Tue, 15 Oct 2019 22:45:13 +0800 Subject: [PATCH] Fix bug with DONE : false filtering Currently if the user filters by things that arent done, it would only show the entries that don't have a DONE flag, not those that has DONE : false. This is due to javascript not considering `'false' == false` --- logic/wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/wrap.js b/logic/wrap.js index 9acd760..4f181f7 100644 --- a/logic/wrap.js +++ b/logic/wrap.js @@ -169,7 +169,7 @@ function Wrap() { tempDatabase[keys[i]] = db[keys[i]]; } - else if (value.DONE == false) + else if (value.DONE == 'false') { tempDatabase[keys[i]] = db[keys[i]]; }