Skip to content

Commit

Permalink
fix: pass bool to hotjarDebug
Browse files Browse the repository at this point in the history
  • Loading branch information
long74100 committed Jun 29, 2022
1 parent 3f77b28 commit fe99c52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/App/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const AppWrapper = () => {
initializeHotjar({
hotjarId: process.env.HOTJAR_APP_ID,
hotjarVersion: process.env.HOTJAR_VERSION,
hotjarDebug: process.env.HOTJAR_DEBUG,
hotjarDebug: !!process.env.HOTJAR_DEBUG,
});
} catch (error) {
logError(error);
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/SettingsAccessTab/data/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logError } from '@edx/frontend-platform/logging';
import { logInfo } from '@edx/frontend-platform/logging';
import { SUPPORTED_SUBSIDY_TYPES } from '../../../../data/constants/subsidyRequests';

/* eslint-disable import/prefer-default-export */
Expand Down Expand Up @@ -29,7 +29,7 @@ export const getSubsidyTypeLabelAndRoute = (configuredRequestSubsidyType, enterp
},
};
} else {
logError(`Invalid request subsidy type provided: ${configuredRequestSubsidyType}`);
logInfo(`Invalid request subsidy type provided: ${configuredRequestSubsidyType}`);
}
return subsidyTypeLabelAndRoute;
};

0 comments on commit fe99c52

Please sign in to comment.