Skip to content

Commit

Permalink
fix: remove unnecessary else block
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Mar 7, 2024
1 parent 609fcee commit acade0a
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 acade0a

Please sign in to comment.