Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: colors not getting checked

thecodrr629451c6057f
diff --git a/apps/web/src/components/menu/colors.js b/apps/web/src/components/menu/colors.js
index 227de5376..39b0157ad 100644
--- a/apps/web/src/components/menu/colors.js
+++ b/apps/web/src/components/menu/colors.js
@@ -9,6 +9,7 @@ function Colors(props) {
const { id, color } = props.note;
const setColor = useStore((store) => store.setColor);
const isMobile = useMobile();
+
return (
<Flex flexWrap="wrap">
{COLORS.map((label) => (
@@ -26,7 +27,7 @@ function Colors(props) {
strokeWidth={0}
data-test-id={`menuitem-colors-${label}`}
/>
- {color === label && (
+ {color === label.toLowerCase() && (
<Icon.Checkmark
data-test-id={`menuitem-colors-${label}-check`}
sx={{