Skip to content

Commit

Permalink
Merge pull request #36 from dicdiksha/fix/104948/location-update/dev
Browse files Browse the repository at this point in the history
Added logs to check for location update
  • Loading branch information
TejaswiniGiram19 authored Oct 13, 2023
2 parents 060a947 + ed7885e commit 01b8fb5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class OtpComponent implements OnInit {
}

ngOnInit() {
console.log('OTPCOmponent--> this.startingForm => ', this.startingForm);
// console.log('Global Object data => ', this.startingForm); // TODO: log!
this.emailAddress = _.get(this.startingForm, 'emailPassInfo.type') === 'email' ? _.get(this.startingForm, 'emailPassInfo.key') : '';
this.phoneNumber = _.get(this.startingForm, 'emailPassInfo.type') === 'phone' ? _.get(this.startingForm, 'emailPassInfo.key') : '';
Expand Down Expand Up @@ -128,11 +129,14 @@ export class OtpComponent implements OnInit {
};
this.signupService.verifyOTP(request).subscribe(
(data: ServerResponse) => {
console.log("verifyOTP---> data--",data);
this.infoMessage = '';
this.errorMessage = '';
if (_.get(this.startingForm, 'routeParams.loginMode') === 'gmail') {
console.log("verifyOTP---> if--> this.startingFOrm--",this.startingForm);
this.updateUserBasicInfo();
} else {
console.log("verifyOTP---> else--> this.startingFOrm--",this.startingForm);
this.createUser(data);
}
},
Expand Down Expand Up @@ -198,8 +202,11 @@ export class OtpComponent implements OnInit {
identifier = _.get(this.startingForm, 'emailPassInfo.key');
}
createRequest.request['reqData'] = _.get(data, 'reqData');
console.log("createUser---> createRequest--",createRequest);
if (this.otpForm.controls.tncAccepted.value && this.otpForm.controls.tncAccepted.status === 'VALID') {
this.signupService.createUserV3(createRequest).subscribe((resp: ServerResponse) => {
console.log("createUser---> this.startingFOrm--",this.startingForm);
console.log("createUser---> resp--",resp);
this.telemetryLogEvents('sign-up', true);
const tncAcceptRequestBody = {
request: {
Expand Down

0 comments on commit 01b8fb5

Please sign in to comment.