Fix bug that caused filter text "NC you own"
This commit is contained in:
parent
539a6bd740
commit
4c0afae38e
1 changed files with 6 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue