Fix allways show mobile sub name tag

This commit is contained in:
Vitor Mateus De Almeida 2021-05-19 20:05:26 -03:00
parent 047b573d10
commit d44fea18c2
2 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ class App extends Component {
Modal.setAppElement('#app'); Modal.setAppElement('#app');
document.getElementsByTagName('html')[0].lang = locale; document.getElementsByTagName('html')[0].lang = locale;
document.getElementsByTagName('html')[0].style.fontSize = isMobile ? MOBILE_FONT_SIZE : DESKTOP_FONT_SIZE; document.getElementsByTagName('html')[0].style.fontSize = isMobile() ? MOBILE_FONT_SIZE : DESKTOP_FONT_SIZE;
const body = document.getElementsByTagName('body')[0]; const body = document.getElementsByTagName('body')[0];
@ -185,7 +185,7 @@ class App extends Component {
startBandwidthMonitoring(); startBandwidthMonitoring();
} }
if (isMobile) makeCall('setMobileUser'); if (isMobile()) makeCall('setMobileUser');
ConnectionStatusService.startRoundTripTime(); ConnectionStatusService.startRoundTripTime();

View File

@ -12,7 +12,7 @@ const UserListItemContainer = (props) => {
const { newLayoutContextDispatch } = newLayoutContext; const { newLayoutContextDispatch } = newLayoutContext;
return <UserListItem {...{ newLayoutContextDispatch, ...props }} />; return <UserListItem {...{ newLayoutContextDispatch, ...props }} />;
}; };
const isMe = intId => intId === Auth.userID; const isMe = (intId) => intId === Auth.userID;
export default withTracker(({ user }) => { export default withTracker(({ user }) => {
const findUserInBreakout = BreakoutService.getBreakoutUserIsIn(user.userId); const findUserInBreakout = BreakoutService.getBreakoutUserIsIn(user.userId);