Skip to content

Commit

Permalink
front: remove unnecessary optional chain in checkStdcmConf()
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Feb 25, 2025
1 parent 765aa6b commit 7e17acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/src/applications/stdcm/utils/formatStdcmConf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export const checkStdcmConf = (
if (arrivalType === 'preciseTime' && arrival) {
timingData = {
arrival_time: arrival.toISOString(),
arrival_time_tolerance_before: tolerances?.before?.ms ?? 0,
arrival_time_tolerance_after: tolerances?.after?.ms ?? 0,
arrival_time_tolerance_before: tolerances.before.ms,
arrival_time_tolerance_after: tolerances.after.ms,
};
}
}
Expand Down

0 comments on commit 7e17acd

Please sign in to comment.