From 4b1e73da4b1ad7fe9852d28b3e44c12b98ce9369 Mon Sep 17 00:00:00 2001 From: qubis741 Date: Thu, 7 Sep 2023 14:24:35 +0200 Subject: [PATCH] added comment --- src/components/progressTracker/ProgressStep.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/progressTracker/ProgressStep.tsx b/src/components/progressTracker/ProgressStep.tsx index 7fe8af11d..9b353ce9f 100644 --- a/src/components/progressTracker/ProgressStep.tsx +++ b/src/components/progressTracker/ProgressStep.tsx @@ -30,6 +30,7 @@ const ProgressStep: GenericComponent = ({ color, onClick, }: ProgressStepProps) => { + // If color is undefined, it will never be assigned but I need to have string, because undefined cannot be indexed const colorClassName = color || ''; const classNames = cx(theme['step'], { [theme['is-active']]: active,