diff --git a/.eslintrc.js b/.eslintrc.js index 4f366fbf6..1e051aa01 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -49,6 +49,7 @@ module.exports = { 'guard-for-in': 'error', 'implicit-arrow-linebreak': 'error', 'no-case-declarations': 'error', + 'no-dupe-else-if': 'error', 'no-empty': 'error', 'no-eq-null': 'error', 'no-global-assign': 'error', diff --git a/ui/app/components/app/menu-droppo.js b/ui/app/components/app/menu-droppo.js index 7ea66927b..79c22d8d8 100644 --- a/ui/app/components/app/menu-droppo.js +++ b/ui/app/components/app/menu-droppo.js @@ -37,8 +37,6 @@ export default class MenuDroppoComponent extends Component { if (isOpen) { this.outsideClickHandler = onClickOutside - } else if (isOpen) { - this.outsideClickHandler = null } }