Skip to content

Commit

Permalink
fix(pci-common): invert condition on has3AZ
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Chaumet <[email protected]>
  • Loading branch information
SimonChaumet committed Jan 9, 2025
1 parent 0afc18d commit 8c0bfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ describe('RegionGlobalzoneChip', () => {
);

it.each([
['render', true, true],
['not render', true, undefined],
['render', true, false],
['not render', true, true],
['not render', false, true],
['not render', false, false],
])(
'should %s 3AZ tooltip text when feature availability is %s and 3AZ availability is %s',
(expected: string, show1AZ: boolean, has3AZ: boolean) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function RegionGlobalzoneChip({
color={ODS_THEME_COLOR_INTENT.text}
level={ODS_TEXT_LEVEL.body}
>
{has3AZ && data?.[FEATURE_REGION_1AZ]
{data?.[FEATURE_REGION_1AZ] && !has3AZ
? t('pci_project_flavors_zone_1AZ_with_3AZ_tooltip')
: t(
`pci_project_flavors_zone_${
Expand Down

0 comments on commit 8c0bfd8

Please sign in to comment.