summaryrefslogtreecommitdiff
path: root/client/nameSearch
diff options
context:
space:
mode:
Diffstat (limited to 'client/nameSearch')
-rw-r--r--client/nameSearch/nameSearch.query.js4
-rw-r--r--client/nameSearch/nameSearch.result.js2
2 files changed, 3 insertions, 3 deletions
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())
}
}
diff --git a/client/nameSearch/nameSearch.result.js b/client/nameSearch/nameSearch.result.js
index 9e20228c..38c544cc 100644
--- a/client/nameSearch/nameSearch.result.js
+++ b/client/nameSearch/nameSearch.result.js
@@ -50,7 +50,7 @@ class NameSearchResult extends Component {
)
}
const els = results.map((result, i) => {
- const { uuid } = result.uuid
+ const { uuid } = result.file_record
const { fullname, gender, description, images } = result.identity
return (
<div key={i}>