Release 0.11.0 #195
@ -55,7 +55,7 @@ export class ResponseDonation implements IResponse {
|
|||||||
this.id = donation.id;
|
this.id = donation.id;
|
||||||
this.donor = donation.donor.toResponse();
|
this.donor = donation.donor.toResponse();
|
||||||
this.amount = donation.amount;
|
this.amount = donation.amount;
|
||||||
this.payedAmount = donation.payedAmount;
|
this.payedAmount = donation.payedAmount || 0;
|
||||||
if (this.payedAmount < this.amount) {
|
if (this.payedAmount < this.amount) {
|
||||||
this.status = DonationStatus.OPEN;
|
this.status = DonationStatus.OPEN;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user