From 5b638444f229e2764a8f30efc5022c1b0ae01543 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 6 May 2022 17:49:54 -0400 Subject: [PATCH] fix(striker-ui): correct defaults for display values in each input validation --- striker-ui/lib/test_input/testInput.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/lib/test_input/testInput.ts b/striker-ui/lib/test_input/testInput.ts index 6d1e423e..27f06290 100644 --- a/striker-ui/lib/test_input/testInput.ts +++ b/striker-ui/lib/test_input/testInput.ts @@ -61,11 +61,11 @@ const testInput: TestInputFunction = ({ tests: requiredTests, } = tests[id]; const { - displayMax = dDisplayMax ?? String(dMax), - displayMin = dDisplayMin ?? String(dMin), max = dMax, min = dMin, value = dValue, + displayMax = dDisplayMax || String(max), + displayMin = dDisplayMin || String(min), } = testsToRun[id]; const { cbFinishBatch } = setBatchCallback({ onFinishBatch });