Skip to content

Commit

Permalink
Sonar fix: removed use of the void operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ipasic-softserve committed Jul 29, 2024
1 parent 60e35a3 commit f2049b7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ const GeneralInfoStep = ({
handleGeneralInfo({ data, errors })
}, [data, errors, handleGeneralInfo])

const onFocusCountry =
!data.country && !countries.length ? void fetchCountries : undefined
const onFocusCountry = async () => {
if (!data.country && !countries.length) {
await fetchCountries()
}
}

if (userLoading) {
return (
Expand Down

0 comments on commit f2049b7

Please sign in to comment.