Skip to content

Commit

Permalink
build/react-wrapper: rookie mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpillsbury committed Nov 29, 2021
1 parent ac62bf0 commit 8d8cd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/react/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const toStyleCssString = (styleObj) => {
.join(';');
};

export const isMaybeBrowser = () => typeof window != undefined;
export const isMaybeServer = () => typeof global != undefined;
export const isMaybeBrowser = () => typeof window != 'undefined';
export const isMaybeServer = () => typeof global != 'undefined';

// NOTE: Next.js expects us to still provide CSS objects, even to native elements (CJP).
export const toStyleAttr =
Expand Down

0 comments on commit 8d8cd12

Please sign in to comment.