Skip to content

Commit

Permalink
feat(mespapiers): Use else condition instead return
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed May 30, 2023
1 parent 3fe3056 commit a1f8bff
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ const ScanWrapper = ({ currentStep }) => {
return data
})
}))
return
}
if (!isFileAlreadySelected(formData, stepIndex, file)) {
} else if (!isFileAlreadySelected(formData, stepIndex, file)) {
setCurrentFile(file)
setFormData(prev => ({
...prev,
Expand Down

0 comments on commit a1f8bff

Please sign in to comment.