Skip to content

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

check conflict in dev-only mode

Ammar Ahmede16627a79b1c
diff --git a/apps/mobile/src/components/mergeconflicts/index.js b/apps/mobile/src/components/mergeconflicts/index.js
index 7c83eb3c7..8cca3247c 100644
--- a/apps/mobile/src/components/mergeconflicts/index.js
+++ b/apps/mobile/src/components/mergeconflicts/index.js
@@ -80,8 +80,10 @@ const MergeConflicts = () => {
const show = async item => {
let noteContent = await db.content.raw(item.contentId);
content.current = { ...noteContent };
- if (!noteContent.conflicted) {
- content.current.conflicted = { ...noteContent };
+ if (__DEV__) {
+ if (!noteContent.conflicted) {
+ content.current.conflicted = { ...noteContent };
+ }
}
setVisible(true);
};