Skip to content

Commit

Permalink
Update MainLayout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
soyombo-baterdene committed Aug 31, 2023
1 parent 11a7d88 commit 518643c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core-ui/src/modules/layout/components/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IUser } from 'modules/auth/types';
import Navigation from './navigation';
import React from 'react';
import asyncComponent from 'modules/common/components/AsyncComponent';
import { bustIframe } from 'modules/common/utils';
import { bustIframe, getEnv } from 'modules/common/utils';
import { withRouter } from 'react-router-dom';

const MainBar = asyncComponent(() =>
Expand Down Expand Up @@ -65,7 +65,9 @@ class MainLayout extends React.Component<IProps, State> {
};
} // end currentUser checking

if (!(window as any).env.REACT_APP_HIDE_MESSENGER) {
const { REACT_APP_HIDE_MESSENGER } = getEnv();

if (!REACT_APP_HIDE_MESSENGER) {
const userDetail = (currentUser && currentUser.details) || {
firstName: '',
lastName: ''
Expand Down

0 comments on commit 518643c

Please sign in to comment.