Skip to content

Commit

Permalink
Correctly check for dev env (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda authored Dec 23, 2023
1 parent f4e8441 commit 3756b65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import CssBaseline from '@mui/material/CssBaseline';
import React, { useLayoutEffect } from 'react';
import { Navigate, Route, Routes, useLocation } from 'react-router-dom';
import { loadErrorMessages, loadDevMessages } from '@apollo/client/dev';
import { __DEV__ } from '@apollo/client/utilities/globals';
import { AppContext } from '@/components/context/AppContext';
import { Browse } from '@/screens/Browse';
import { DownloadQueue } from '@/screens/DownloadQueue';
Expand All @@ -37,7 +36,7 @@ import { ServerSettings } from '@/screens/settings/ServerSettings.tsx';
import { WebUISettings } from '@/screens/settings/WebUISettings.tsx';
import { ServerUpdateChecker } from '@/components/settings/ServerUpdateChecker.tsx';

if (__DEV__) {
if (process.env.NODE_ENV !== 'production') {
// Adds messages only in a dev environment
loadDevMessages();
loadErrorMessages();
Expand Down

0 comments on commit 3756b65

Please sign in to comment.