Skip to content

Commit

Permalink
payment changes > hotfix v1.2.2 AB#7107 AB#7108 AB#7115
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Apr 14, 2021
1 parent fedc1ae commit 8c5617e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export class MakePaymentComponent implements OnInit {

private async getNextInstallmentId(): Promise<number> {
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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8c5617e

Please sign in to comment.