type caught error to any
This commit is contained in:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user