diff --git a/app/api/profile/route.ts b/app/api/profile/route.ts index 2ff3cc7..c2ca04e 100644 --- a/app/api/profile/route.ts +++ b/app/api/profile/route.ts @@ -145,7 +145,7 @@ export async function PUT(request: Request) { updateData.avatar = avatar || null; } if (bio !== undefined) { - updateData.bio = bio.trim() || null; + updateData.bio = bio === null ? null : bio.trim() || null; } if (characterClass !== undefined) { updateData.characterClass = (characterClass as CharacterClass) || null;