Skip to content

Commit

Permalink
Fix #429
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Aug 18, 2024
1 parent 403ddf0 commit 1b4248e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/TimeLine/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const keys_1 = [uuidv4(), uuidv4(), uuidv4(), uuidv4(),uuidv4()];
const keys_2 = [uuidv4(), uuidv4(), uuidv4(), uuidv4(),uuidv4()];

export const GetDepartureText = (connection, t) => {
const isMobile = useMediaQuery('(max-width:600px)');
let isMobile = window.innerWidth <= 600;

window.addEventListener('resize', () => {
isMobile = window.innerWidth <= 600;
});

if (!!!connection) {
return <Fragment></Fragment>;
Expand Down

0 comments on commit 1b4248e

Please sign in to comment.