feature/11-new_classes #15

Merged
niggl merged 55 commits from feature/11-new_classes into dev 2020-12-02 17:48:19 +00:00
Showing only changes of commit d0a1ea3292 - Show all commits

View File

@ -33,7 +33,7 @@ export class DistanceDonation extends Donation {
public get amount(): number {
let calculatedAmount = -1;
try {
calculatedAmount = this.amountPerDistance * this.runner.getDistance();
calculatedAmount = this.amountPerDistance * this.runner.distance;
} catch (error) {
throw error;
}