diff options
author | 2021-04-15 09:58:35 -0400 | |
---|---|---|
committer | 2021-04-15 09:58:35 -0400 | |
commit | 86214031546e68f59534b092bc420415fd9c09f4 (patch) | |
tree | 7fd579209f66c5031e3871941bfce5b6006291bb /source/features/bugs-tab.tsx | |
parent | 8ca75a97bf92ade57b220f9945a06e3eee865c9c (diff) | |
download | refined-github-86214031546e68f59534b092bc420415fd9c09f4.tar.gz refined-github-86214031546e68f59534b092bc420415fd9c09f4.tar.zst refined-github-86214031546e68f59534b092bc420415fd9c09f4.zip |
Fix console error in `bugs-tab` (#4237)
Diffstat (limited to 'source/features/bugs-tab.tsx')
-rw-r--r-- | source/features/bugs-tab.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/bugs-tab.tsx b/source/features/bugs-tab.tsx index 0145b9cf..781c3e7b 100644 --- a/source/features/bugs-tab.tsx +++ b/source/features/bugs-tab.tsx @@ -12,7 +12,7 @@ import SearchQuery from '../github-helpers/search-query'; import abbreviateNumber from '../helpers/abbreviate-number'; async function highlightBugsTabOnIssuePage(): Promise<void | false> { - if (await countBugs() > 0 && !await elementReady('.sidebar-labels .IssueLabel[href$="/bug" i]')) { + if (await countBugs() === 0 || !await elementReady('.sidebar-labels .IssueLabel[href$="/bug" i]')) { return false; } |