Skip to content

Commit

Permalink
fix: use boolean to track minimal mode activation
Browse files Browse the repository at this point in the history
  • Loading branch information
crfmc committed Apr 9, 2024
1 parent d2276ed commit b1ebccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const allDrivers = [
function App(props: RouteComponentProps) {
// URL parameters
const urlParams = new URLSearchParams(props.location.search);
const isMinimalMode = urlParams.get('minimal_mode');
const isMinimalMode = urlParams.get('minimal_mode') === 'true';
const VIS_PADDING = {
top: isMinimalMode ? 0 : 60,
right: isMinimalMode ? 0 : 60,
Expand Down

0 comments on commit b1ebccb

Please sign in to comment.