Only show service summary once
parent
d80a2df979
commit
8b622dbd53
|
@ -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(
|
||||||
const summary = this._summaryForServiceType(
|
|
||||||
policiesAndService.service.serviceType,
|
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 New Issue