From 788e3054699a61223d3ba0bbc192ab5368c87134 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 7 May 2020 19:56:35 +0200 Subject: [PATCH] FIX: parenthesis were wrong, resulting in an always true expression (#9690) --- .../javascripts/discourse/app/components/navigation-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/navigation-bar.js b/app/assets/javascripts/discourse/app/components/navigation-bar.js index 3da0001ad98..fc10137aaea 100644 --- a/app/assets/javascripts/discourse/app/components/navigation-bar.js +++ b/app/assets/javascripts/discourse/app/components/navigation-bar.js @@ -29,7 +29,7 @@ export default Component.extend(FilterModeMixin, { if ( c.connectorClass && typeof c.connectorClass.path === "function" && - typeof (c.connectorClass.displayName === "function") + typeof c.connectorClass.displayName === "function" ) { let path = c.connectorClass.path(category); if (path.indexOf(filterType) > 0) {