1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

hotfix for search input

This commit is contained in:
Matthias Kretschmann 2019-04-30 18:36:51 +02:00
parent 1585149a00
commit a8969bb70c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -54,9 +54,7 @@ class Home extends Component<HomeProps, HomeState> {
private searchAssets = (event: FormEvent<HTMLFormElement>) => { private searchAssets = (event: FormEvent<HTMLFormElement>) => {
event.preventDefault() event.preventDefault()
this.props.history.push( this.props.history.push(`/search?text=${this.state.search}`)
`/search?text=${JSON.stringify(this.state.search)}`
)
} }
} }