Renamed getter

ref #11
This commit is contained in:
Nicolai Ort 2020-12-02 15:49:19 +01:00
parent 84dd1fe4a5
commit d0a1ea3292
1 changed files with 1 additions and 1 deletions

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;
}