Cleaned up realations regarding response classes
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
ref #132
This commit is contained in:
@@ -36,7 +36,7 @@ export class ResponseDistanceDonation extends ResponseDonation implements IRespo
|
||||
*/
|
||||
public constructor(donation: DistanceDonation) {
|
||||
super(donation);
|
||||
this.runner = donation.runner.toResponse();
|
||||
if (donation.runner) { this.runner = donation.runner.toResponse(); }
|
||||
this.amountPerDistance = donation.amountPerDistance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user