From 5e02332d3acd84327f8d0368036d09eb0d3afd15 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Fri, 8 Nov 2024 12:54:21 -0500 Subject: [PATCH] Fix partial feature support 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'; }