fix: reference error

This commit is contained in:
ammarahm-ed
2021-02-05 09:03:17 +05:00
parent 58bc706a54
commit 7ae6ea7f33

View File

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