From 3013b646356c616fa094122bfefcdc2c6f5ef1a1 Mon Sep 17 00:00:00 2001 From: futa-ikeda <51409893+futa-ikeda@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:51:02 -0500 Subject: [PATCH] Fix partial feature support detection (#2385) - Ticket: [ENG-6525] - Feature flag: n/a ## Purpose - Fix Terms widget to show partial feature support ## Summary of Changes - Fix typo in logic to detect partial feature detection --- .../components/addons-service/terms-of-service/component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/osf-components/addon/components/addons-service/terms-of-service/component.ts b/lib/osf-components/addon/components/addons-service/terms-of-service/component.ts index f101508a98c..f9acd68acf6 100644 --- a/lib/osf-components/addon/components/addons-service/terms-of-service/component.ts +++ b/lib/osf-components/addon/components/addons-service/terms-of-service/component.ts @@ -139,11 +139,11 @@ export default class TermsOfServiceComponent extends Component { return this.applicableCapabilities.map((capability: CapabilityCategory) => { const textTranslationChoices = capabilitiesToTextKeyMap[this.baseTranslationKey][capability]; let textTranslationKey = textTranslationChoices.false; - let localClass='danger-bg'; + let localClass = 'danger-bg'; if (providerCapabilities?.includes(capability)) { textTranslationKey = textTranslationChoices.true; localClass = 'success-bg'; - } else if (providerCapabilities?.includes((capability + '_partial' as ExternalServiceCapabilities))) { + } else if (providerCapabilities?.includes((capability + '_PARTIAL' as ExternalServiceCapabilities))) { textTranslationKey = textTranslationChoices.partial; localClass = 'warning-bg'; }