1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-27 13:20:48 +02:00

fix: logo doesn't get loaded correctly

This commit is contained in:
Elias Schneider 2023-07-31 16:38:29 +02:00
parent a47d080657
commit 9ba2b4c82c
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C
2 changed files with 3 additions and 3 deletions

View File

@ -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*\""
},

View File

@ -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 = () => {
</Tabs.List>
<Tabs.Panel value="totp" pt="xs">
{user!.totpVerified ? (
{user?.totpVerified ? (
<>
<form
onSubmit={disableTotpForm.onSubmit((values) => {