From 9ba2b4c82cdad9097b33f0451771818c7b972a6b Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 31 Jul 2023 16:38:29 +0200 Subject: [PATCH] fix: logo doesn't get loaded correctly --- frontend/package.json | 2 +- frontend/src/pages/account/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ? ( <>
{