Skip to content

Commit

Permalink
fixup! Fix layout context prop resolving for boolean types (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmelmicro committed Sep 17, 2024
1 parent 98684d1 commit ede184b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/_helpers/resolveContextOrProp.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
export const resolveContextOrProp = (contextValue, propValue) => {
if (contextValue === false) {
if (contextValue === false || contextValue === null) {
return propValue;
}

if (contextValue != null) {
return contextValue;
}

return propValue;
return contextValue;
};

0 comments on commit ede184b

Please sign in to comment.