Skip to content

Commit 0a13231

Browse files
committed
updated isDevelopmentMode boolean to get rid of process undefined error
1 parent 70e45f6 commit 0a13231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const injectGoogleReCaptchaScript = ({
145145
*/
146146
export const logWarningMessage = (message: string) => {
147147
const isDevelopmentMode =
148-
!!process.env && process.env.NODE_ENV !== 'production';
148+
!!process && !!process.env && process.env.NODE_ENV !== 'production';
149149

150150
if (isDevelopmentMode) {
151151
return;

0 commit comments

Comments
 (0)