diff --git a/CHANGELOG.md b/CHANGELOG.md index db5e494047..994422f89c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- -## [Unreleased](https://github.com/global-121/121-platform/compare/v1.2.1...master) +## [Unreleased](https://github.com/global-121/121-platform/compare/v1.2.2...master) --- +## [1.2.2](https://github.com/global-121/121-platform/compare/v1.2.1...v1.2.2) - 2021-04-14 + ## [1.2.1](https://github.com/global-121/121-platform/compare/v1.2.0...v1.2.1) - 2021-04-13 ## [1.2.0](https://github.com/global-121/121-platform/compare/v1.1.0...v1.2.0) - 2021-04-13 diff --git a/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts b/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts index ac1dc4a406..4ce81bfcf1 100644 --- a/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts +++ b/interfaces/HO-Portal/src/app/program/make-payment/make-payment.component.ts @@ -59,8 +59,7 @@ export class MakePaymentComponent implements OnInit { private async getNextInstallmentId(): Promise { let previousId = 0; - - if (this.pastPayments && this.pastPayments.length > 1) { + if (this.pastPayments && this.pastPayments.length > 0) { previousId = this.pastPayments[this.pastPayments.length - 1].id; } diff --git a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts index dddf473435..c984031da7 100644 --- a/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts +++ b/interfaces/HO-Portal/src/app/program/program-people-affected/program-people-affected.component.ts @@ -419,7 +419,7 @@ export class ProgramPeopleAffectedComponent implements OnInit { this.lastInstallment = ( await this.programsService.getPastInstallments(this.programId) ).length; - const firstInstallmentToShow = Math.max(this.lastInstallment - 2, 0); + const firstInstallmentToShow = 1; if (this.thisPhase === ProgramPhase.payment) { this.pastTransactions = await this.programsService.getTransactions(