mirror of https://github.com/vector-im/riot-web
s/terms/policies/
parent
18dde859af
commit
99d1ed5efe
|
@ -123,9 +123,9 @@ export default class TermsDialog extends React.PureComponent {
|
||||||
for (const policiesAndService of this.props.policiesAndServicePairs) {
|
for (const policiesAndService of this.props.policiesAndServicePairs) {
|
||||||
const parsedBaseUrl = url.parse(policiesAndService.service.baseUrl);
|
const parsedBaseUrl = url.parse(policiesAndService.service.baseUrl);
|
||||||
|
|
||||||
const termsValues = Object.values(policiesAndService.policies);
|
const PolicyValues = Object.values(policiesAndService.policies);
|
||||||
for (let i = 0; i < termsValues.length; ++i) {
|
for (let i = 0; i < PolicyValues.length; ++i) {
|
||||||
const termDoc = termsValues[i];
|
const termDoc = PolicyValues[i];
|
||||||
const termsLang = pickBestLanguage(Object.keys(termDoc).filter((k) => k !== 'version'));
|
const termsLang = pickBestLanguage(Object.keys(termDoc).filter((k) => k !== 'version'));
|
||||||
let serviceName;
|
let serviceName;
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
|
@ -133,7 +133,7 @@ export default class TermsDialog extends React.PureComponent {
|
||||||
}
|
}
|
||||||
const summary = this._summaryForServiceType(
|
const summary = this._summaryForServiceType(
|
||||||
policiesAndService.service.serviceType,
|
policiesAndService.service.serviceType,
|
||||||
termsValues.length > 1 ? termDoc[termsLang].name : null,
|
PolicyValues.length > 1 ? termDoc[termsLang].name : null,
|
||||||
);
|
);
|
||||||
|
|
||||||
rows.push(<tr key={termDoc[termsLang].url}>
|
rows.push(<tr key={termDoc[termsLang].url}>
|
||||||
|
|
Loading…
Reference in New Issue