Skip to content

Commit

Permalink
fix(dedicated.account): remove call to marketing for us (#9902)
Browse files Browse the repository at this point in the history
ref: DTRSD-119555

Signed-off-by: Jacques Larique <[email protected]>
  • Loading branch information
JacquesLarique authored Aug 29, 2023
1 parent b276447 commit 5b936bb
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,20 @@ export default class NewAccountFormController {
this.consentDecision = null;
this.smsConsentDecision = null;

return this.$q
.all({
rules: this.fetchRules(this.model),
featureAvailability: this.ovhFeatureFlipping.checkFeatureAvailability([
FEATURES.emailConsent,
FEATURES.smsConsent,
]),
})
return this.ovhFeatureFlipping
.checkFeatureAvailability([FEATURES.emailConsent, FEATURES.smsConsent])
.then((result) => {
this.rules = result.rules;
this.isEmailConsentAvailable = result.featureAvailability.isFeatureAvailable(
this.isEmailConsentAvailable = result.isFeatureAvailable(
FEATURES.emailConsent,
);
this.isSmsConsentAvailable = result.featureAvailability.isFeatureAvailable(
this.isSmsConsentAvailable = result.isFeatureAvailable(
FEATURES.smsConsent,
);
})
.then(() => this.fetchRules(this.model))
.then((rules) => {
this.rules = rules;
})
.catch((err) => {
this.initError = err.data?.message || err.message || err;
})
Expand Down

0 comments on commit 5b936bb

Please sign in to comment.