diff --git a/frontend/package.json b/frontend/package.json index f8bb242..e9cbfea 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "node .next/standalone/server.js", + "start": "next start", "lint": "next lint", "format": "prettier --end-of-line=auto --write \"src/**/*.ts*\"" }, diff --git a/frontend/src/pages/account/index.tsx b/frontend/src/pages/account/index.tsx index 0e39bf3..80f5d0d 100644 --- a/frontend/src/pages/account/index.tsx +++ b/frontend/src/pages/account/index.tsx @@ -17,6 +17,7 @@ import { Tb2Fa } from "react-icons/tb"; import { FormattedMessage } from "react-intl"; import * as yup from "yup"; import Meta from "../../components/Meta"; +import LanguagePicker from "../../components/account/LanguagePicker"; import ThemeSwitcher from "../../components/account/ThemeSwitcher"; import showEnableTotpModal from "../../components/account/showEnableTotpModal"; import useTranslate from "../../hooks/useTranslate.hook"; @@ -24,7 +25,6 @@ import useUser from "../../hooks/user.hook"; import authService from "../../services/auth.service"; import userService from "../../services/user.service"; import toast from "../../utils/toast.util"; -import LanguagePicker from "../../components/account/LanguagePicker"; const Account = () => { const { user, refreshUser } = useUser(); @@ -181,7 +181,7 @@ const Account = () => { - {user!.totpVerified ? ( + {user?.totpVerified ? ( <>
{