diff --git a/client/src/controllers/UserController.ts b/client/src/controllers/UserController.ts index bd7e168..4185dd6 100644 --- a/client/src/controllers/UserController.ts +++ b/client/src/controllers/UserController.ts @@ -132,9 +132,6 @@ export const changeUserInfo = async (userId: string, formData: FormData) => { newPassword, }), }); - if (!response.ok) { - return {error: response.statusText}; - } const data = await response.json(); if (data.error) { return {error: data.error};