From ef23a72b8eb47eb78cba8c678bad3e2a6bd2b576 Mon Sep 17 00:00:00 2001 From: wanlingt Date: Wed, 18 Oct 2023 14:29:18 +0800 Subject: [PATCH] feat: add console.log statements --- src/app/modules/myinfo/myinfo.service.ts | 3 ++- .../email-submission/email-submission.controller.ts | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/app/modules/myinfo/myinfo.service.ts b/src/app/modules/myinfo/myinfo.service.ts index 61a3217768..9dd987221f 100644 --- a/src/app/modules/myinfo/myinfo.service.ts +++ b/src/app/modules/myinfo/myinfo.service.ts @@ -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) @@ -290,6 +290,7 @@ export class MyInfoServiceClass { prefilledField.fieldValue = fieldValue // Disable field prefilledField.disabled = isReadOnly + console.log('prefilledField: ', prefilledField) return prefilledField }) return this.saveMyInfoHashes( diff --git a/src/app/modules/submission/email-submission/email-submission.controller.ts b/src/app/modules/submission/email-submission/email-submission.controller.ts index 2cc6f73dde..29fb43d75c 100644 --- a/src/app/modules/submission/email-submission/email-submission.controller.ts +++ b/src/app/modules/submission/email-submission/email-submission.controller.ts @@ -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( (hashedFields) => ({ form,