From 59f692719bb6b4163594243e4c11262dc88466b4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 12 Jan 2019 17:38:56 +0100 Subject: fixing imports --- client/nameSearch/nameSearch.query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/nameSearch/nameSearch.query.js') diff --git a/client/nameSearch/nameSearch.query.js b/client/nameSearch/nameSearch.query.js index 629b7b1d..99c1da84 100644 --- a/client/nameSearch/nameSearch.query.js +++ b/client/nameSearch/nameSearch.query.js @@ -11,8 +11,8 @@ class NameSearchQuery extends Component { handleInput(value) { this.setState({ q: value }) - if (value.strip().length > 1) { - this.props.actions.search(this.props.payload, value.strip()) + if (value.trim().length > 1) { + this.props.actions.search(this.props.payload, value.trim()) } } -- cgit v1.2.3-70-g09d2