1 parent
84dd1fe4a5
commit
d0a1ea3292
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user