@@ -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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user