fix: revid filter crash

This commit is contained in:
Shekar Siri 2021-05-19 12:08:45 +05:30
parent ad2105f534
commit 901230c3d0
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import cn from 'classnames';
const FilterItem = ({ className = '', icon, label, onClick }) => {
return (
<div className={ cn(stl.filterItem, className) } id="filter-item" onClick={ onClick }>
<Icon name={ icon } size="16" marginRight="8" />
{ icon && <Icon name={ icon } size="16" marginRight="8" /> }
<span className={ stl.label }>{ label }</span>
</div>
);

View file

@ -6,7 +6,7 @@ import { updateClient } from 'Duck/user'
function OptOut(props) {
const { optOut } = props;
const onChange = () => {
props.updateClient({ optOut: !optOut, name: 'OpenReplay' })
props.updateClient({ optOut: !optOut })
}
return (
<div>