diff --git a/src/components/HeaderSearch/index.js b/src/components/HeaderSearch/index.js index 2c56fe387d286c7a9b860bac9c9d6560fb4fb697..04f8b38ec8ff2e1c06455363a91d3e1e8f64aa9e 100644 --- a/src/components/HeaderSearch/index.js +++ b/src/components/HeaderSearch/index.js @@ -65,11 +65,11 @@ export default class HeaderSearch extends PureComponent { onChange = value => { const { onSearch, onChange } = this.props; this.setState({ value }); - if (onSearch){ - onSearch(value); + if (onSearch) { + onSearch(value); } - if (onChange){ - onChange(value); + if (onChange) { + onChange(value); } };