Skip to content

Commit

Permalink
Bug fix for family size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Dec 28, 2023
1 parent db8798a commit a43c90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down Expand Up @@ -257,7 +257,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const actions = {
let familySize = 1;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down Expand Up @@ -334,7 +334,7 @@ const actions = {
let application = state.application;

// Common-law or Married
if ([3, 4].includes(state.application.csl_classification)) familySize++;
if ([3].includes(state.application.csl_classification)) familySize++;

if (store.getters.selectedStudent && isArray(store.getters.selectedStudent.dependent_info)) {
dependentCount = store.getters.selectedStudent.dependent_info.filter(
Expand Down

0 comments on commit a43c90e

Please sign in to comment.