From 2cd9ded783c865c2534c5551e751c53bf5587ebf Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Wed, 21 Jun 2023 15:42:34 -0500 Subject: [PATCH] Correct datatype of invoice amount --- src/app/pmtservice/pmtservice.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pmtservice/pmtservice.component.ts b/src/app/pmtservice/pmtservice.component.ts index 7593ab5..e755311 100644 --- a/src/app/pmtservice/pmtservice.component.ts +++ b/src/app/pmtservice/pmtservice.component.ts @@ -148,7 +148,7 @@ export class PmtserviceComponent implements OnInit { this.activatedRoute.queryParams.subscribe((params) => { this.pmtData.ownerId = params["owner"]; this.pmtData.invoice = params["invoiceNo"]; - this.pmtData.amount = params["amount"]; + this.pmtData.amount = +params["amount"]; this.pmtData.currency = params["currency"]; this.pmtData.shortcode = params["shortCode"]; this.getInvoiceData( this.pmtData );