Merge pull request #332 from Safelite/feature/CSR-481
parsed string for int to make consistent with documentation
This commit is contained in:
commit
1222c38315
2 changed files with 3 additions and 3 deletions
|
|
@ -278,7 +278,7 @@ export default {
|
|||
|
||||
navigateForward(partsData){
|
||||
// CSR-98 TEMP
|
||||
const vehicleYearsToShowHeritageFunnel = [ "2001", "2002", "2010" ];
|
||||
const vehicleYearsToShowHeritageFunnel = [ 2001, 2002, 2010 ];
|
||||
if (vehicleYearsToShowHeritageFunnel.includes(store.getters.vehicle.year)) {
|
||||
navigateToHeritageFunnel();
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ export default {
|
|||
|
||||
watch: {
|
||||
selectedYear(year) {
|
||||
|
||||
this.$store.commit(this.storeMutations.UPDATE_YEAR, year);
|
||||
const parsedYear = parseInt(year);
|
||||
this.$store.commit(this.storeMutations.UPDATE_YEAR, parsedYear);
|
||||
this.$router.navigateAfterSave(
|
||||
this.navigationScenarios.SELECTED_YEAR,
|
||||
this.$route
|
||||
|
|
|
|||
Loading…
Reference in a new issue