diff --git a/app/panel/components/Summary.jsx b/app/panel/components/Summary.jsx index 5d51d254d..063f607be 100644 --- a/app/panel/components/Summary.jsx +++ b/app/panel/components/Summary.jsx @@ -421,6 +421,13 @@ class Summary extends React.Component { return paused_blocking || sitePolicy || disableBlocking || IS_CLIQZ; } + _isSmartBlockingInactive() { + const { paused_blocking, sitePolicy } = this.props; + const { disableBlocking } = this.state; + + return paused_blocking || sitePolicy || disableBlocking; + } + /** * Render helper for the donut * @return {JSX} JSX for rendering the donut @@ -672,7 +679,7 @@ class Summary extends React.Component { clickButton={this.clickCliqzFeature} type="smart_block" active={enable_smart_block} - cliqzInactive={this._isCliqzInactive()} + cliqzInactive={this._isSmartBlockingInactive()} isSmaller={is_expert && !isCondensed} isCondensed={isCondensed} isTooltipHeader={is_expert}