Skip to content

Commit

Permalink
saving progress - accommodate the new field for partner residency
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-solo committed Sep 19, 2024
1 parent 8c450de commit d421dcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions __tests__/utils/excelReaderUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function createTransformedPayload(rowToTransform: string): Record<string, any> {
)
: undefined
: undefined,
// TODO: do the same as this but for the partner - partnerYearsInCanadaSinceOAS
yearsInCanadaSinceOAS:
transformLiveOnlyCanadaValue(
rowToTransform[
Expand Down
4 changes: 1 addition & 3 deletions utils/api/futureHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ export class FutureHandler {
const clientRes =
Number(this.query.yearsInCanadaSince18) ||
Number(this.query.yearsInCanadaSinceOAS)
const partnerRes =
Number(this.query.partnerYearsInCanadaSince18) ||
Number(this.query.partnerYearsInCanadaSinceOAS)
const partnerRes = Number(this.query.partnerYearsInCanadaSince18)
const partnerOnlyCanada = this.query.partnerLivedOnlyInCanada

const clientDeferralMeta =
Expand Down
2 changes: 2 additions & 0 deletions utils/api/mainHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export default class MainHandler {
constructor(query: { [key: string]: string | string[] }) {
const { error, value } = schema.validate(query, { abortEarly: false })

console.log('value', value)

// Provides results for current age
this.handler = new BenefitHandler(value)

Expand Down

0 comments on commit d421dcc

Please sign in to comment.