Commit 9d337970 authored by chechunchi's avatar chechunchi

fix small

parent 5e5c59d2
...@@ -31,7 +31,7 @@ const PositionModal = () => { ...@@ -31,7 +31,7 @@ const PositionModal = () => {
<Button <Button
disabled={selected === undefined} disabled={selected === undefined}
onClick={() => { onClick={() => {
if (selected) { if (selected !== undefined) {
sendSelectPositionResponse(selected); sendSelectPositionResponse(selected);
dispatch(setPositionModalIsOpen(false)); dispatch(setPositionModalIsOpen(false));
dispatch(resetPositionModal); dispatch(resetPositionModal);
......
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