fixed build errors

This commit is contained in:
Ren Amamiya
2023-02-24 15:29:40 +07:00
parent 35c50ced5f
commit 4428cc680f
3 changed files with 11 additions and 12 deletions

View File

@@ -29,7 +29,10 @@ export default function Page() {
const [loading, setLoading] = useState(false);
const $currentUser: any = useStore(currentUser);
const profile = JSON.parse($currentUser.metadata);
const profile =
$currentUser.metadata !== undefined
? JSON.parse($currentUser.metadata)
: { display_name: null, username: null };
const {
register,