fix fix error changeuserinfo

This commit is contained in:
Guillaume Dorce 2022-11-18 09:38:09 +01:00
parent 6d1072cc43
commit 37181d714a
1 changed files with 0 additions and 3 deletions

View File

@ -132,9 +132,6 @@ export const changeUserInfo = async (userId: string, formData: FormData) => {
newPassword, newPassword,
}), }),
}); });
if (!response.ok) {
return {error: response.statusText};
}
const data = await response.json(); const data = await response.json();
if (data.error) { if (data.error) {
return {error: data.error}; return {error: data.error};