Skip to content

Commit

Permalink
feat: add console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlingt committed Oct 18, 2023
1 parent 86d5b3b commit ef23a72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/app/modules/myinfo/myinfo.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class MyInfoServiceClass {
const { fieldValue, isReadOnly } = myInfoData.getFieldValueForAttr(
myInfoAttr as InternalAttr,
)

console.log('fieldValue: ', fieldValue)
// Check if field value exists in our constants lists. If it doesn't, log the error
if (fieldValue) {
const myInfoConstantsList = getMyInfoAttributeConstantsList(myInfoAttr)
Expand All @@ -290,6 +290,7 @@ export class MyInfoServiceClass {
prefilledField.fieldValue = fieldValue
// Disable field
prefilledField.disabled = isReadOnly
console.log('prefilledField: ', prefilledField)
return prefilledField
})
return this.saveMyInfoHashes(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,16 @@ const submitEmailModeForm: ControllerHandler<
.andThen(MyInfoService.verifyLoginJwt)
.asyncAndThen(({ uinFin }) =>
MyInfoService.fetchMyInfoHashes(uinFin, formId)
.andThen((hashes) =>
MyInfoService.checkMyInfoHashes(
.andThen((hashes) => {
console.log(
'parsedResponses.responses: ',
parsedResponses.responses,
)
return MyInfoService.checkMyInfoHashes(
parsedResponses.responses,
hashes,
),
)
)
})
.map<IPopulatedEmailFormWithResponsesAndHash>(
(hashedFields) => ({
form,
Expand Down

0 comments on commit ef23a72

Please sign in to comment.