Commit b4abef6e authored by oahehc's avatar oahehc
Browse files

Fix: encode search keyword to prevent error on IE

parent 000eae60
......@@ -174,7 +174,9 @@ export default class AnueSearch extends Component {
handleFetch = debounce(async () => {
const { searchString } = this.state;
const rawResult = await this.request.get(`${this.anueUrlSingleton.anueSearchAllApiUrl}${searchString}`);
const rawResult = await this.request.get(
`${this.anueUrlSingleton.anueSearchAllApiUrl}${encodeURIComponent(searchString)}`
);
const result = this.dataHelpers.searchTradesResponseHelper(rawResult);
if (result && (result.quoteFunds || result.news || result.oldDrivers)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment