Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Mar 12, 2024
1 parent 234c42b commit 92c3a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/qa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dynamics } from 'config';
export const enableQaHelpers = dynamics.enableQaHelpers;

export const overrideWithQAMockBoolean = (value: boolean, key: string) => {
if (enableQaHelpers) {
if (enableQaHelpers && typeof window !== 'undefined') {
const mock = localStorage.getItem(key);
if (mock) {
return mock === 'true';
Expand All @@ -13,7 +13,7 @@ export const overrideWithQAMockBoolean = (value: boolean, key: string) => {
};

export const overrideWithQAMockNumber = (value: number, key: string) => {
if (enableQaHelpers) {
if (enableQaHelpers && typeof window !== 'undefined') {
const mock = localStorage.getItem(key);
if (mock && !isNaN(Number(mock))) {
return Number(mock);
Expand Down

0 comments on commit 92c3a25

Please sign in to comment.