Skip to content

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

send color as currentScreen when a color is opened

ammarahm-eddbc851fd3108
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index c17b9bb4b..d49f8b1d8 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -42,7 +42,7 @@ export const Notes = ({route, navigation}) => {
init();
dispatch({
type: ACTIONS.CURRENT_SCREEN,
- screen: params.type,
+ screen: params.type === "color"? params.color.title : params.type,
});
} else {
setNotes([]);
@@ -122,7 +122,7 @@ export const Notes = ({route, navigation}) => {
init();
dispatch({
type: ACTIONS.CURRENT_SCREEN,
- screen: params.type,
+ screen: params.type === "color"? params.color.title : params.type,
});
} else {
setNotes([]);