Skip to content

Commit

Permalink
feat: core-236 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BoulderBrains committed Nov 10, 2021
1 parent 12413d9 commit d3272fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/WwwFrame/DisclaimersContentful.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ export default {
}
// uiGlobalPromoSetting can contain an array of different banners with
// different start/end dates first determine if setting is enabled.
// DO I NEED THIS CHECK, SINCE IF THERE'S INACTIVE BANNERS WITHIN DATE RANGE
// WE STILL WANT TO DISPLAY THE DISCLAIMERS... RIGHT?
const isGlobalSettingEnabled = settingEnabled(
uiGlobalPromoSetting.fields,
'active',
Expand All @@ -69,7 +66,7 @@ export default {
// gather all inactive promo banners by their start and end dates
const inactivePromoBanners = uiGlobalPromoSetting.fields.content.filter(promoContent => {
const hiddenUrls = promoContent?.fields?.hiddenUrls ?? [];
// Check hiddenUrl for display of disclaimers
// check hiddenUrl for display of disclaimers
if (hiddenUrls.includes(this.$route.path)) {
return false;
}
Expand Down Expand Up @@ -120,7 +117,7 @@ export default {
}
},
computed: {
// Constructing the final form of the disclaimer text for display
// constructing the final form of the disclaimer text for display
fullyBuiltDisclaimerText() {
const builtDisclaimertext = [];
this.disclaimerContent.forEach(disclaimer => {
Expand Down

0 comments on commit d3272fb

Please sign in to comment.