Skip to content

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

fix note not colored

ammarahm-ed0f2ff743e2ff
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
index efeb0e0e9..b7806d570 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetColorsSection.js
@@ -19,9 +19,9 @@ export const ActionSheetColorsSection = ({item, close}) => {
const dimensions = useSettingStore(state => state.dimensions);
let width = dimensions.width > 600 ? 600 : 500;
- const changeColor = async () => {
+ const changeColor = async (color) => {
if (note.color === color.name) {
- await db.notes.note(note.id).uncolor(color.name);
+ await db.notes.note(note.id).uncolor();
} else {
await db.notes.note(note.id).color(color.name);
}
diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.js
index eb9ff1a8e..d2631e2f3 100644
--- a/apps/mobile/src/services/PremiumService.js
+++ b/apps/mobile/src/services/PremiumService.js
@@ -49,12 +49,10 @@ function getProducts() {
}
function get() {
- //return true;
return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;
}
async function verify(callback, error) {
- //return callback();
try {
if (!premiumStatus) {
if (error) {
@@ -72,7 +70,6 @@ async function verify(callback, error) {
const onUserStatusCheck = async type => {
let status = get();
let message = null;
-
if (!status) {
switch (type) {
case CHECK_IDS.noteColor:
@@ -112,6 +109,7 @@ const onUserStatusCheck = async type => {
message = null;
break;
}
+
if (message) {
eSendEvent(eShowGetPremium, message);
}