web: People: Fixed empty culture at profile viewer.

This commit is contained in:
Ilya Oleshko 2019-09-27 12:36:25 +03:00
parent 9512c0b9c8
commit ac8c69821e

View File

@ -235,7 +235,7 @@ class ProfileInfo extends React.PureComponent {
key: "ru-RU",
label: "Russian (Russia)"
}];
const language = cultureName || currentCulture;
const language = cultureName || currentCulture || this.props.culture;
const workFromDate = new Date(workFrom).toLocaleDateString(language);
const birthDayDate = new Date(birthday).toLocaleDateString(language);
const formatedSex = capitalizeFirstLetter(sex);
@ -441,7 +441,7 @@ const SectionBodyContent = props => {
</EditButtonWrapper>
)}
</AvatarWrapper>
<ProfileInfo profile={profile} isSelf={isSelf} isAdmin={isAdmin} t={t} />
<ProfileInfo profile={profile} isSelf={isSelf} isAdmin={isAdmin} t={t} culture={settings.culture} />
{isSelf && (
<ToggleWrapper isSelf={true} >
<ToggleContent label={t('Subscriptions')} isOpen={true} >