Fixed amount calculations
This commit is contained in:
@@ -26,7 +26,7 @@ export class ResponseRunner extends ResponseParticipant {
|
||||
|
||||
public constructor(runner: Runner) {
|
||||
super(runner);
|
||||
this.distance = runner.scans.reduce((sum, current) => sum + current.distance, 0);
|
||||
this.distance = runner.scans.filter(scan => { scan.valid === true }).reduce((sum, current) => sum + current.distance, 0);
|
||||
this.group = runner.group;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user