fix(client): logout

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-30 22:48:09 +08:00
committed by Asai Neko
parent a1cac494dc
commit 22fdcd2020
15 changed files with 186 additions and 150 deletions

View File

@@ -79,7 +79,7 @@ export function EditProfileDialog() {
onSubmit={(e) => {
e.preventDefault();
e.stopPropagation();
form.handleSubmit().then(() => setOpen(false));
void form.handleSubmit().then(() => setOpen(false));
}}
className="grid gap-4"
>

View File

@@ -35,7 +35,7 @@ export function MainProfile() {
<div className="flex flex-col w-full gap-3">
<div className="flex flex-row gap-3 w-full lg:flex-col">
<Avatar className="size-16 rounded-full border-2 border-muted lg:size-64">
{user.avatar ? <AvatarImage src={user.avatar} alt={user.nickname} /> : IdentIcon}
{user.avatar !== undefined ? <AvatarImage src={user.avatar} alt={user.nickname} /> : IdentIcon}
</Avatar>
<div className="flex flex-1 flex-col justify-center lg:mt-3">
<span className="font-semibold text-2xl" aria-hidden="true">{user.nickname}</span>