CSR-1212
reworked to be more specific so it doesn't pass prereq for an empty array
This commit is contained in:
parent
a6e0293438
commit
3399ef24a0
2 changed files with 5 additions and 3 deletions
|
|
@ -149,10 +149,12 @@ export default {
|
|||
methods: {
|
||||
arePagePrerequisitesValid() {
|
||||
// Check if isRepair is populated and if the pageData we need is here (Parts data)
|
||||
const vehiclePartsFromPageData = store.getters.pageData(
|
||||
fmgPageValues.VEHICLE_PARTS
|
||||
);
|
||||
return (
|
||||
store.getters.damage.isRepair != null &&
|
||||
store.getters.pageData(fmgPageValues.VEHICLE_PARTS) &&
|
||||
Object.keys(store.getters.pageData(fmgPageValues.VEHICLE_PARTS)).length !== 0
|
||||
vehiclePartsFromPageData?.partsOrQuestions?.some((part) => part?.glassName)
|
||||
);
|
||||
},
|
||||
async forwardButtonAction() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
process.env.VUE_APP_CONSUMER_CF_DISTRO =
|
||||
"https://digitalapi.dev.safelite.io";
|
||||
process.env.VUE_APP_HERITAGE_FUNNEL =
|
||||
"http://localhost:38000/default.aspx";
|
||||
"http://localhost/default.aspx";
|
||||
process.env.VUE_APP_GOOGLE_PLACES_API_KEY =
|
||||
"AIzaSyDptGCkOPgN2uWJOy4ou4M33phRD4MAoJo";
|
||||
process.env.VUE_APP_CURRENT_ENVIRONMENT = "Localhost";
|
||||
|
|
|
|||
Loading…
Reference in a new issue