Skip to content

Commit

Permalink
Fix partial feature support detection (#2385)
Browse files Browse the repository at this point in the history
-   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
  • Loading branch information
futa-ikeda authored Nov 8, 2024
1 parent cda0d04 commit 3013b64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ export default class TermsOfServiceComponent extends Component<Args> {
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';
}
Expand Down

0 comments on commit 3013b64

Please sign in to comment.