fixed a bug that would cause users to not be able to see their reults

This commit is contained in:
Jack 2020-08-09 02:41:52 +01:00
parent 018000190c
commit 0a9bfc4ed8

View file

@ -914,7 +914,11 @@ function refreshAccountPage() {
if (result.tags === undefined || result.tags.length === 0) {
//no tags, show when no tag is enabled
if (activeFilters.includes("tag_notag")) tagHide = false;
if (dbSnapshot.tags.length > 0) {
if (activeFilters.includes("tag_notag")) tagHide = false;
} else {
tagHide = false;
}
} else {
//tags exist
let validTags = dbSnapshot.tags.map((t) => t.id);