From d67be4428fe2fe330cc1dc7d1c28c5efc13aabc6 Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Wed, 17 Jun 2020 15:34:27 +0200 Subject: [PATCH] Fix padding when no titles are given --- assets/js/src/common/steps/steps.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/src/common/steps/steps.tsx b/assets/js/src/common/steps/steps.tsx index 3192d2184b..031e4c89d5 100644 --- a/assets/js/src/common/steps/steps.tsx +++ b/assets/js/src/common/steps/steps.tsx @@ -19,7 +19,7 @@ const Steps = ({ count, current, titles }: Props) => ( })} >
{i >= current ? i : ''}
-
{titles[i - 1] || ''}
+ {titles[i - 1] &&
{titles[i - 1] || ''}
} ))}