Skip to content

Commit

Permalink
Merge pull request #117 from Sohith-code/self-registration-flow
Browse files Browse the repository at this point in the history
Download QR Code Fix
  • Loading branch information
sureshece16 authored Dec 9, 2024
2 parents d179a4b + 1d1f09f commit 8779fa2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class CustomSelfRegistrationComponent implements OnInit {
this.selfRegistrationForm.get('endDate')?.setValue(new Date(this.latestRegisteredData.endDate))
this.customRegistrationLinks = {
registrationLink: this.latestRegisteredData.url,
qrRegistrationLink: this.latestRegisteredData.qrCodeImagePath,
qrRegistrationLink: this.latestRegisteredData.qrCodeImagePath.replace('portal', 'mdo')
}
this.numberOfUsersOnboarded = this.latestRegisteredData.numberOfUsersOnboarded
} else {
Expand Down Expand Up @@ -148,7 +148,10 @@ export class CustomSelfRegistrationComponent implements OnInit {
this.onboardingService.generateSelfRegistrationQRCode(payload).subscribe({
next: (response: any) => {
if (response.result && Object.keys(response.result).length > 0 && response.responseCode === 'OK') {
this.customRegistrationLinks = response.result
this.customRegistrationLinks = {
registrationLink: response.result.registrationLink,
qrRegistrationLink: response.result.qrRegistrationLink.replace('portal', 'mdo')
}
this.latestRegisteredData.endDate = new Date(this.selfRegistrationForm.controls['endDate'].value)
this.latestRegisteredData.startDate = new Date(this.selfRegistrationForm.controls['startDate'].value)
this.latestRegisteredData.status = 'active'
Expand Down

0 comments on commit 8779fa2

Please sign in to comment.