We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f208ae2 commit 77787daCopy full SHA for 77787da
src/components/ProgressBar.tsx
@@ -120,13 +120,15 @@ const ItemIcon = ({ variant }: { variant: ProgressBarItemVariant }) => {
120
color: colors.palette.white,
121
label: 'Incomplete'
122
},
123
- 'null': {
+ null: {
124
icon: faCircle,
125
background: colors.answer.neutral,
126
color: colors.answer.neutralDark,
127
label: 'No feedback'
128
}
129
- }[variant === null ? 'null' : variant];
+ }[String(variant)];
130
+
131
+ if (!variantData) return null;
132
133
return <StyledFontAwesomeIcon
134
icon={variantData.icon}
0 commit comments