Skip to content

Commit

Permalink
fix: undefined color code
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj Ajay Joshi authored and Viraj Ajay Joshi committed Jun 10, 2024
1 parent 958f1bb commit 26e2054
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ColorPaletteComponent = () => {
};

const newColor = RGBcolorCode?.split(' ');
const colorCode = convertRGBToHex(newColor);
const colorCode = RGBcolorCode ? convertRGBToHex(newColor) : undefined;

variants.push({
name,
Expand Down

0 comments on commit 26e2054

Please sign in to comment.