type caught error to any

This commit is contained in:
m5r
2021-08-28 02:05:44 +08:00
parent 8765d2b7e5
commit 43f89216ae
12 changed files with 13 additions and 13 deletions

View File

@ -41,7 +41,7 @@ const ProfileInformations: FunctionComponent = () => {
try {
// TODO
// await updateUser({ email, data: { name } });
} catch (error) {
} catch (error: any) {
logger.error(error.response, "error updating user infos");
if (error.response.status === 401) {

View File

@ -38,7 +38,7 @@ const UpdatePassword: FunctionComponent = () => {
try {
// TODO
// await customer.updateUser({ password: newPassword });
} catch (error) {
} catch (error: any) {
logger.error(error.response, "error updating user infos");
if (error.response.status === 401) {