fix(striker-ui): correct defaults for display values in each input validation

main
Tsu-ba-me 3 years ago
parent 0c76873e75
commit 5b638444f2
  1. 4
      striker-ui/lib/test_input/testInput.ts

@ -61,11 +61,11 @@ const testInput: TestInputFunction = ({
tests: requiredTests, tests: requiredTests,
} = tests[id]; } = tests[id];
const { const {
displayMax = dDisplayMax ?? String(dMax),
displayMin = dDisplayMin ?? String(dMin),
max = dMax, max = dMax,
min = dMin, min = dMin,
value = dValue, value = dValue,
displayMax = dDisplayMax || String(max),
displayMin = dDisplayMin || String(min),
} = testsToRun[id]; } = testsToRun[id];
const { cbFinishBatch } = setBatchCallback({ onFinishBatch }); const { cbFinishBatch } = setBatchCallback({ onFinishBatch });

Loading…
Cancel
Save