diff --git a/src/modules/ad/core/domain/candidate.entity.ts b/src/modules/ad/core/domain/candidate.entity.ts index 95abf70..b9e99c1 100644 --- a/src/modules/ad/core/domain/candidate.entity.ts +++ b/src/modules/ad/core/domain/candidate.entity.ts @@ -155,7 +155,7 @@ export class CandidateEntity extends AggregateRoot { }); }, ); - return (this.props.steps as Step[])[passengerStartStepIndex].duration; + return this.props.steps![passengerStartStepIndex].duration; }; /**