We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec5dac5 commit 78c1d2bCopy full SHA for 78c1d2b
front/src/modules/timesStops/helpers/utils.ts
@@ -193,6 +193,10 @@ export function updateRowTimesAndMargin(
193
newRowData.theoreticalMargin = '0%';
194
}
195
196
+ // Remove second unit in stopFor if inputted by mistake
197
+ if (newRowData.stopFor && /^[0-9]+ *s$/i.test(newRowData.stopFor)) {
198
+ newRowData.stopFor = newRowData.stopFor.replace(/ *s$/i, '');
199
+ }
200
return newRowData;
201
202
0 commit comments