From d7828230fb052c0e270d0bc79a7d6f0c421cce41 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 9 Jan 2021 11:40:48 +0500 Subject: [PATCH] fix app version check in Settings --- apps/mobile/android/app/src/main/assets/texteditor.html | 2 -- apps/mobile/src/views/Settings/index.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.html index 848a6b133..5fe532329 100644 --- a/apps/mobile/android/app/src/main/assets/texteditor.html +++ b/apps/mobile/android/app/src/main/assets/texteditor.html @@ -537,8 +537,6 @@ } } - - loadAction(true); diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js index 1f8fef4b0..7cddbe83c 100644 --- a/apps/mobile/src/views/Settings/index.js +++ b/apps/mobile/src/views/Settings/index.js @@ -148,7 +148,7 @@ export const Settings = ({navigation}) => { { name: 'Check for updates', func: async () => { - if (version?.mobile === APP_VERSION) { + if (version?.mobile > APP_VERSION) { ToastEvent.show('You are using the latest version', 'success'); return; }