diff --git a/src/amo/components/InstallWarning/index.js b/src/amo/components/InstallWarning/index.js index e3bf9caf3c0..3af82de2222 100644 --- a/src/amo/components/InstallWarning/index.js +++ b/src/amo/components/InstallWarning/index.js @@ -86,7 +86,7 @@ export class InstallWarningBase extends React.Component { !correctedLocation && isFirefox({ userAgentInfo }) && addon.type === ADDON_TYPE_EXTENSION && - promotedCategories.some( + promotedCategories.every( (promoted) => !EXCLUDE_WARNING_CATEGORIES.includes(promoted), ) ); diff --git a/src/amo/installAddon.js b/src/amo/installAddon.js index 1da814ccc8e..af656f20241 100644 --- a/src/amo/installAddon.js +++ b/src/amo/installAddon.js @@ -330,7 +330,10 @@ export class WithInstallHelpers extends React.Component 0 + ) { _tracking.sendEvent({ action: promotedCategories.join(', '), category: INSTALL_TRUSTED_EXTENSION_CATEGORY,