Only show service summary once

pull/21833/head
J. Ryan Stinnett 2019-09-30 17:37:30 +01:00
parent d80a2df979
commit 8b622dbd53
1 changed files with 4 additions and 3 deletions

View File

@ -124,12 +124,13 @@ export default class TermsDialog extends React.PureComponent {
const termDoc = policyValues[i];
const termsLang = pickBestLanguage(Object.keys(termDoc).filter((k) => k !== 'version'));
let serviceName;
let summary;
if (i === 0) {
serviceName = this._nameForServiceType(policiesAndService.service.serviceType, parsedBaseUrl.host);
}
const summary = this._summaryForServiceType(
summary = this._summaryForServiceType(
policiesAndService.service.serviceType,
);
}
rows.push(<tr key={termDoc[termsLang].url}>
<td className="mx_TermsDialog_service">{serviceName}</td>