summaryrefslogtreecommitdiff
path: root/client/nameSearch/nameSearch.query.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/nameSearch/nameSearch.query.js')
-rw-r--r--client/nameSearch/nameSearch.query.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/nameSearch/nameSearch.query.js b/client/nameSearch/nameSearch.query.js
index b82e324b..629b7b1d 100644
--- a/client/nameSearch/nameSearch.query.js
+++ b/client/nameSearch/nameSearch.query.js
@@ -11,22 +11,22 @@ class NameSearchQuery extends Component {
handleInput(value) {
this.setState({ q: value })
- if (value.length > 2) {
- this.props.actions.search(this.props.payload, value)
+ if (value.strip().length > 1) {
+ this.props.actions.search(this.props.payload, value.strip())
}
}
render() {
return (
<div className='query'>
- <h2>Find Your Name</h2>
+ <h2>Search by Name</h2>
<h3>Searching {13456} identities</h3>
<p>
{'Enter your name to see if you were included in this dataset..'}
</p>
<input
type="text"
- class="q"
+ className="q"
placeholder="Enter your name"
value={this.state.q}
onInput={e => this.handleInput(e.target.value)}