diff --git a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx index 5bc26c389..ba01428f9 100644 --- a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx @@ -7,7 +7,6 @@ import { defineMessages, useIntl } from 'react-intl'; import { useToasts } from 'react-toast-notifications'; import useSWR from 'swr'; import * as Yup from 'yup'; -import { MediaServerType } from '../../../../../server/constants/server'; import { UserSettingsGeneralResponse } from '../../../../../server/interfaces/api/userSettingsInterfaces'; import { availableLanguages, @@ -25,6 +24,7 @@ import PageTitle from '../../../Common/PageTitle'; import LanguageSelector from '../../../LanguageSelector'; import QuotaSelector from '../../../QuotaSelector'; import RegionSelector from '../../../RegionSelector'; +import getConfig from 'next/config'; const messages = defineMessages({ general: 'General', @@ -59,7 +59,7 @@ const messages = defineMessages({ const UserGeneralSettings: React.FC = () => { const intl = useIntl(); - const settings = useSettings(); + const { publicRuntimeConfig } = getConfig(); const { addToast } = useToasts(); const { locale, setLocale } = useLocale(); const [movieQuotaEnabled, setMovieQuotaEnabled] = useState(false); @@ -189,19 +189,25 @@ const UserGeneralSettings: React.FC = () => {