Skip to content

Commit

Permalink
fix: only init shibboleth pinger in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Sep 3, 2024
1 parent 45c2fb6 commit ea2e295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import CustomUiConfigProvider from '../components/CustomUiConfigProvider'
import AdUser from './AdUser'
import GuestUser from './GuestUser'
import useTheme from '../theme'
import { inDevelopment, inE2EMode, UI_CONFIG_NAME } from '../util/common'
import { inProduction, UI_CONFIG_NAME } from '../util/common'
import useCustomUiConfig from '../hooks/useCustomUiConfig'

const App = () => {
Expand All @@ -22,7 +22,7 @@ const App = () => {
const customUiConfig: any = useCustomUiConfig(UI_CONFIG_NAME)
const theme = useTheme(customUiConfig?.theme)

if (!inDevelopment || !inE2EMode) {
if (inProduction) {
useEffect(() => {
initShibbolethPinger()
}, [])
Expand Down

0 comments on commit ea2e295

Please sign in to comment.