Skip to content

Commit

Permalink
Merge pull request #119 from Sohith-code/cbrelease-4.8.20-custom-regi…
Browse files Browse the repository at this point in the history
…stration-sohith

Download QR Code Fix
  • Loading branch information
sureshece16 authored Dec 9, 2024
2 parents e002929 + a9ae48a commit ab1270f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,16 @@ export class CustomSelfRegistrationComponent implements OnInit, OnDestroy {
getlistOfRegisterationLinks() {
this.createMdoService.getListOfRegisteedLinks({ orgId: this.initialData.orgId }).subscribe({
next: (response: any) => {
debugger
if (response.result && response.result.qrCodeDataForOrg && response.result.qrCodeDataForOrg.length) {
this.registeredLinksList = response.result.qrCodeDataForOrg
this.latestRegisteredData = this.registeredLinksList[this.registeredLinksList.length - 1]
this.selfRegistrationForm.get('startDate')?.setValue(new Date(this.latestRegisteredData.startDate))
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', 'spv'),

}
this.numberOfUsersOnboarded = this.latestRegisteredData.numberOfUsersOnboarded
this.initialData.QRGenerated = true
Expand Down

0 comments on commit ab1270f

Please sign in to comment.