Skip to content

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

fix: reference error

ammarahm-ed7ae6ea7f331d
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js
index b786b7f1f..f8facd697 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js
@@ -49,9 +49,9 @@ const ColorItem = ({value, format}) => {
const onPress = () => {
if (selected) {
- formatSelection(type, null);
+ formatSelection(format, null);
} else {
- formatSelection(execCommands[type](value));
+ formatSelection(execCommands[format](value));
}
};