fix(SW-1115) merge to one if
This commit is contained in:
@@ -210,10 +210,8 @@ export default function Search({ locations, handlePressEnter }: SearchProps) {
|
||||
onChange: handleOnChange,
|
||||
}),
|
||||
onKeyDown: (e) => {
|
||||
if (e.key === "Enter") {
|
||||
if (!isOpen) {
|
||||
handlePressEnter()
|
||||
}
|
||||
if (e.key === "Enter" && !isOpen) {
|
||||
handlePressEnter()
|
||||
}
|
||||
},
|
||||
type: "search",
|
||||
|
||||
Reference in New Issue
Block a user