consistency
This commit is contained in:
parent
bf45490281
commit
e42ef9c9ea
1 changed files with 2 additions and 2 deletions
|
|
@ -52,14 +52,14 @@ export default {
|
||||||
},
|
},
|
||||||
answersToDisplay() {
|
answersToDisplay() {
|
||||||
const shouldShowMobile = this.isServiceableMobile && this.isITAC;
|
const shouldShowMobile = this.isServiceableMobile && this.isITAC;
|
||||||
const shouldShowMobileInsurance = this.isServiceableMobile && !this.isITAC;
|
const shouldShowMobileNotITAC = this.isServiceableMobile && !this.isITAC;
|
||||||
const shouldShowInshop = this.isServiceableInshop;
|
const shouldShowInshop = this.isServiceableInshop;
|
||||||
const shouldShowDropoff = this.isServiceableInshop && !useMainStore().damage.isRepair;
|
const shouldShowDropoff = this.isServiceableInshop && !useMainStore().damage.isRepair;
|
||||||
return this.answersFromCms
|
return this.answersFromCms
|
||||||
? this.answersFromCms.filter((answer) => (
|
? this.answersFromCms.filter((answer) => (
|
||||||
(answer.Name === AppointmentTypeStrings.IN_SHOP && shouldShowInshop)
|
(answer.Name === AppointmentTypeStrings.IN_SHOP && shouldShowInshop)
|
||||||
|| (answer.Name === AppointmentTypeStrings.MOBILE && shouldShowMobile)
|
|| (answer.Name === AppointmentTypeStrings.MOBILE && shouldShowMobile)
|
||||||
|| (answer.Name === AppointmentTypeStrings.MOBILE_NOT_ITAC && shouldShowMobileInsurance)
|
|| (answer.Name === AppointmentTypeStrings.MOBILE_NOT_ITAC && shouldShowMobileNotITAC)
|
||||||
|| (answer.Name === AppointmentTypeStrings.DROP_OFF && shouldShowDropoff)
|
|| (answer.Name === AppointmentTypeStrings.DROP_OFF && shouldShowDropoff)
|
||||||
))
|
))
|
||||||
: [];
|
: [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue