From f586e81dd1010b5e6f320b12ae6fa4c1f30990fb Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Wed, 31 May 2023 23:38:26 +0000 Subject: [PATCH] fix(FlowSubstep): count 0 as value towards required check --- packages/web/src/components/FlowSubstep/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/FlowSubstep/index.tsx b/packages/web/src/components/FlowSubstep/index.tsx index 00fccdeb..53c97a58 100644 --- a/packages/web/src/components/FlowSubstep/index.tsx +++ b/packages/web/src/components/FlowSubstep/index.tsx @@ -36,7 +36,7 @@ const validateSubstep = (substep: ISubstep, step: IStep) => { // `false` is an exceptional valid value if (argValue === false) return true; - return Boolean(argValue); + return argValue !== undefined && argValue !== null; }); };