Skip to content

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

fix: incorrect condition statement

ammarahm-ed10f4ae982fca
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index 742bbb3ac..b1fd482b8 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -803,7 +803,7 @@ export const Settings = ({navigation}) => {
title="Encrypted Backups"
tagline="Encrypt your data before backup"
onPress={async () => {
- if (user) {
+ if (!user) {
ToastEvent.show(
'You must login to enable encryption',
'error',