Fix async handling for API response in updateProfile and workspace functions

This commit is contained in:
2025-05-24 14:10:35 +02:00
parent 07e0647174
commit 34ac76b87d
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ export const updateProfile = async (
method: 'PUT',
body: JSON.stringify(updateRequest),
});
const data: unknown = response.json();
const data: unknown = await response.json();
if (!isUser(data)) {
throw new Error('Invalid user data');