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 Dec 3, 2021
1 parent f0e611f commit 164bb7c
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 164bb7c

Please sign in to comment.