No longer answering with null, but 0
continuous-integration/drone/pr Build is failing Details

ref #193
This commit is contained in:
Nicolai Ort 2021-04-14 18:42:38 +02:00
parent 30c6d3d8db
commit 49b174f29f
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export class ResponseDonation implements IResponse {
this.id = donation.id;
this.donor = donation.donor.toResponse();
this.amount = donation.amount;
this.payedAmount = donation.payedAmount;
this.payedAmount = donation.payedAmount || 0;
if (this.payedAmount < this.amount) {
this.status = DonationStatus.OPEN;
}