fix fix error changeuserinfo
This commit is contained in:
parent
6d1072cc43
commit
37181d714a
|
|
@ -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};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue