Alpha Release 0.2.1 #119

Merged
niggl merged 34 commits from dev into main 2021-01-21 17:31:51 +00:00
Showing only changes of commit 4ee807973e - Show all commits

View File

@ -65,7 +65,7 @@ export class Runner extends Participant {
*/
@IsInt()
public get distanceDonationAmount(): number {
return this.distanceDonations.reduce((sum, current) => sum + current.amountPerDistance, 0) * this.distance;
return this.distanceDonations.reduce((sum, current) => sum + current.amount, 0);
}
/**