Fix unnecessary is in check (#57)

This commit is contained in:
Oğuzhan Koral
2025-08-26 19:51:42 +03:00
committed by GitHub
parent ffff7366c3
commit 047dbff259
+1 -3
View File
@@ -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
}
// 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()
}
}