Skip to content

Commit

Permalink
fix: convert status to lowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmargi12 committed Oct 15, 2024
1 parent 4c423d9 commit 1ab91c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/content/Cards/CardChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const statusStyles: Record<StatusVariants | 'default', ChipStyle> = {
export const CardChip = ({ status, statusText }: CardChipProps) => {
const theme = useTheme()
const { color, backgroundColor }: ChipStyle =
statusStyles[status ?? 'default'] || statusStyles.default
statusStyles[(status?.toLowerCase() as StatusVariants) ?? 'default'] ||
statusStyles.default

return (
<MuiChip
Expand Down

0 comments on commit 1ab91c0

Please sign in to comment.