File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
front/src/applications/stdcm/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const validateTotalMass = ({
2525 const consistMassInTons = Math . floor ( kgToT ( tractionEngineMass + towedMass ) ) ;
2626 const massLimit = towedMass ? consistMassInTons : tractionMassInTons ;
2727
28- if ( totalMass < massLimit || totalMass >= CONSIST_TOTAL_MASS_MAX ) {
28+ if ( totalMass < massLimit || totalMass > CONSIST_TOTAL_MASS_MAX ) {
2929 return 'consist.errors.totalMass.range' ;
3030 }
3131
@@ -51,7 +51,7 @@ export const validateTotalLength = ({
5151
5252 const consistLength = Math . floor ( tractionEngineLength + towedLength ) ;
5353
54- if ( totalLength < consistLength || totalLength >= CONSIST_TOTAL_LENGTH_MAX ) {
54+ if ( totalLength < consistLength || totalLength > CONSIST_TOTAL_LENGTH_MAX ) {
5555 return 'consist.errors.totalLength.range' ;
5656 }
5757
You can’t perform that action at this time.
0 commit comments