From 047dbff25929cac4fd0131c1bbcd2d99780fe31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20Koral?= <45078678+oguzhankoral@users.noreply.github.com> Date: Tue, 26 Aug 2025 19:51:42 +0300 Subject: [PATCH] Fix unnecessary is in check (#57) --- store/hostApp.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/store/hostApp.ts b/store/hostApp.ts index c7ea0c3..0756084 100644 --- a/store/hostApp.ts +++ b/store/hostApp.ts @@ -545,13 +545,11 @@ export const useHostAppStore = defineStore('hostAppStore', () => { if (canGetGlobalConfig) { const globalConfig = await app.$configBinding.getGlobalConfig() - if ('isUpdateNotificationDisabled' in globalConfig) - // because if the value is false, we do not get it from bridge - isUpdateNotificationDisabled.value = globalConfig.isUpdateNotificationDisabled + isUpdateNotificationDisabled.value = globalConfig.isUpdateNotificationDisabled } // Checks whether new version available for the connector or not and throws a toast notification if any. - if (app.$isRunningOnConnector && !isUpdateNotificationDisabled) { + if (app.$isRunningOnConnector && !isUpdateNotificationDisabled.value) { await checkUpdate() } }