Skip to content
Snippets Groups Projects
Commit 6710b5cd authored by Larisa Andrici's avatar Larisa Andrici
Browse files

fix(menuCountry doesn't return anything when value is not a country):

parent acbd7427
No related branches found
No related tags found
3 merge requests!233S26 updates,!230S26 Updates,!224fix(menuCountry doesn't return anything when value is not a country):
...@@ -99,7 +99,7 @@ export default compose( ...@@ -99,7 +99,7 @@ export default compose(
}, },
onEnter: ({ handleSelect, options, cursor }) => event => { onEnter: ({ handleSelect, options, cursor }) => event => {
if (event.which === 13) { if (event.which === 13) {
handleSelect(options[cursor].value)() handleSelect(get(options[cursor], 'value'))()
} }
}, },
handleKeyDown: ({ setCursor, options }) => event => { handleKeyDown: ({ setCursor, options }) => event => {
......
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