Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Arkhypenko authored and Ihor Arkhypenko committed Nov 27, 2019
1 parent fe725cb commit 83d644c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const LocationSelectorDialog = props => {
} = props;

function handleAddLocation(location) {
setTimeout(() => locationInputRef.current.focus());
locationInputRef.current.focus();
onAddLocation(location);
}

function handleRemoveLocation(locationId) {
setTimeout(() => locationInputRef.current.focus());
locationInputRef.current.focus();
onRemoveLocation(locationId);
}

Expand Down

0 comments on commit 83d644c

Please sign in to comment.