Web: People: Fixed displaying errors on language change

This commit is contained in:
Alexey Safronov 2020-12-23 11:34:21 +03:00
parent 73f92d0897
commit 352ec309b8

View File

@ -143,8 +143,8 @@ class ProfileInfo extends React.PureComponent {
if (profile.cultureName === language.key) return;
updateProfileCulture(profile.id, language.key).catch((err) =>
console.log(err)
updateProfileCulture(profile.id, language.key).catch((error) =>
toastr.error(error && error.message ? error.message : error)
);
};