Skip to content

Commit

Permalink
fix: remove unnecessary else block (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber authored Mar 7, 2024
1 parent 3242cd4 commit 7c5fc02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,9 @@ const useProjectSoilSettingsBase = <ID extends string | undefined>(
const projectSettings = useSelector(state => {
if (projectId === undefined) {
return undefined;
} else {
return (
state.soilId.projectSettings[projectId] ?? DEFAULT_PROJECT_SETTINGS
);
}

return state.soilId.projectSettings[projectId] ?? DEFAULT_PROJECT_SETTINGS;
});

return useMemo(
Expand Down

0 comments on commit 7c5fc02

Please sign in to comment.