Fix bug that caused filter text "NC you own"

This commit is contained in:
Emi Matchu 2021-01-21 17:35:03 -08:00
parent 539a6bd740
commit 4c0afae38e

View file

@ -391,13 +391,17 @@ function getQueryFilterText(query) {
}
if (query.filterToCurrentUserOwnsOrWants === "OWNS") {
if (textWords.length === 0) {
if (!query.filterToItemKind && !query.filterToZoneLabel) {
textWords.push("Items");
} else if (query.filterToItemKind && !query.filterToZoneLabel) {
textWords.push("items");
}
textWords.push("you own");
} else if (query.filterToCurrentUserOwnsOrWants === "WANTS") {
if (textWords.length === 0) {
if (!query.filterToItemKind && !query.filterToZoneLabel) {
textWords.push("Items");
} else if (query.filterToItemKind && !query.filterToZoneLabel) {
textWords.push("items");
}
textWords.push("you want");
}