latest work #20

Merged
philipp merged 233 commits from dev into main 2020-12-09 18:49:33 +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 { public get amount(): number {
let calculatedAmount = -1; let calculatedAmount = -1;
try { try {
calculatedAmount = this.amountPerDistance * this.runner.getDistance(); calculatedAmount = this.amountPerDistance * this.runner.distance;
} catch (error) { } catch (error) {
throw error; throw error;
} }