Commit c666be3c authored by Robert Knight's avatar Robert Knight

Remove always-truthy conditional

parent 010ac9a5
......@@ -89,10 +89,8 @@ const features = createSelector(
(state: State) => state.features,
(profile: Profile, features: string[]): Record<string, boolean> => {
const combinedFeatures = { ...profile.features };
if (features) {
for (const feat of features) {
combinedFeatures[feat] = true;
}
for (const feat of features) {
combinedFeatures[feat] = true;
}
return combinedFeatures;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment