Only show service summary once
This commit is contained in:
parent
d80a2df979
commit
8b622dbd53
1 changed files with 4 additions and 3 deletions
|
@ -124,12 +124,13 @@ export default class TermsDialog extends React.PureComponent {
|
||||||
const termDoc = policyValues[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;
|
||||||
|
let summary;
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
serviceName = this._nameForServiceType(policiesAndService.service.serviceType, parsedBaseUrl.host);
|
serviceName = this._nameForServiceType(policiesAndService.service.serviceType, parsedBaseUrl.host);
|
||||||
|
summary = this._summaryForServiceType(
|
||||||
|
policiesAndService.service.serviceType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const summary = this._summaryForServiceType(
|
|
||||||
policiesAndService.service.serviceType,
|
|
||||||
);
|
|
||||||
|
|
||||||
rows.push(<tr key={termDoc[termsLang].url}>
|
rows.push(<tr key={termDoc[termsLang].url}>
|
||||||
<td className="mx_TermsDialog_service">{serviceName}</td>
|
<td className="mx_TermsDialog_service">{serviceName}</td>
|
||||||
|
|
Loading…
Reference in a new issue