From 8b622dbd53c31cd7d9750d85a245baf4dbc68b05 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 30 Sep 2019 17:37:30 +0100 Subject: [PATCH] Only show service summary once --- src/components/views/dialogs/TermsDialog.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/views/dialogs/TermsDialog.js b/src/components/views/dialogs/TermsDialog.js index 1e706ff1a7..6fd818c97c 100644 --- a/src/components/views/dialogs/TermsDialog.js +++ b/src/components/views/dialogs/TermsDialog.js @@ -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); + summary = this._summaryForServiceType( + policiesAndService.service.serviceType, + ); } - const summary = this._summaryForServiceType( - policiesAndService.service.serviceType, - ); rows.push( {serviceName}