Skip to content

Commit

Permalink
Merge branch 'stage' into MWPW-159906-safari-url-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
zagi25 committed Oct 11, 2024
2 parents b221bae + 0629150 commit 9c1b8b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions edsdme/components/PartnerCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,13 @@ export default class PartnerCards extends LitElement {
}
// eslint-disable-next-line consistent-return
return selectedFiltersKeys.every((key) => cardArbitraryArr.some((arbitraryTag) => {
if (!arbitraryTag.value || !arbitraryTag.key) return false;
const arbitraryTagKeyStr = arbitraryTag.key.trim().toLowerCase().replaceAll(' ', '-');
const arbitraryTagValueStr = arbitraryTag.value.trim().toLowerCase().replaceAll(' ', '-');
if (key === arbitraryTagKeyStr) {
const arbitraryTagKey = Object.keys(arbitraryTag)[0]?.replaceAll(' ', '-');
if (arbitraryTagKey !== key) return false;

const arbitraryTagValue = arbitraryTag[key].replaceAll(' ', '-');
if (arbitraryTagValue) {
// eslint-disable-next-line max-len
return this.selectedFilters[key].some((selectedTag) => selectedTag.key === arbitraryTagValueStr);
return this.selectedFilters[key].some((selectedTag) => selectedTag.key === arbitraryTagValue);
}
return false;
}));
Expand Down
6 changes: 3 additions & 3 deletions nala/blocks/banners/banners.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default {
permissionRegion: 'United Kingdom,Europe West',
},
paragraphIndex: 1,
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t loose your benefits with Adobe.',
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t lose your benefits with Adobe.',
renewButtonText: 'Renew now',
renewLinkPath: 'https://channelpartners.adobe.com/s/renewal/',
},
Expand All @@ -225,7 +225,7 @@ export default {
permissionRegion: 'Pacific',
},
paragraphIndex: 1,
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t loose your benefits with Adobe.',
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t lose your benefits with Adobe.',
renewButtonText: 'Renew now',
renewLinkPath: 'https://channelpartners.adobe.com/s/renewal/',
},
Expand All @@ -243,7 +243,7 @@ export default {
permissionRegion: 'China',
},
paragraphIndex: 1,
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t loose your benefits with Adobe.',
bannerText: 'Your membership will expire in 9 days. Make sure to renew so that you don’t lose your benefits with Adobe.',
renewButtonText: 'Renew now',
renewLinkPath: 'https://channelpartners.adobe.com/s/renewal/',
},
Expand Down

0 comments on commit 9c1b8b8

Please sign in to comment.