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)); } };