Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Giles <[email protected]>
  • Loading branch information
esizer and petertgiles authored Oct 1, 2024
1 parent 3359bb0 commit 822cc2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Display = ({
const isIndigenous =
indigenousCommunities && indigenousCommunities.length > 0;
const hasClaimedEquityGroup =
// Note, we only care about one truthy value so nullish coaliescing seems odd here?
// Note, we only care about one truthy value so nullish coalescing is inappropriate here.
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
isWoman || hasDisability || isVisibleMinority || isIndigenous;

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-helpers/decorators/ThemeDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const withThemeFromHydrogen = <TRenderer extends Renderer = any>({
return (storyFn, context) => {
const selectedTheme = pluckThemeFromContext(context);
const { themeOverride } = useThemeParameters();
const selected = (themeOverride ?? selectedTheme) || defaultTheme;
const selected = themeOverride ?? selectedTheme ?? defaultTheme;

const themeArr = useMemo(
() =>
Expand Down

0 comments on commit 822cc2b

Please sign in to comment.