From d0a1ea3292cf7c033d24a39ba6fdccde3c0f4022 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 2 Dec 2020 15:49:19 +0100 Subject: [PATCH] Renamed getter ref #11 --- src/models/DistanceDonation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/DistanceDonation.ts b/src/models/DistanceDonation.ts index 915362b..55236d1 100644 --- a/src/models/DistanceDonation.ts +++ b/src/models/DistanceDonation.ts @@ -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; }