diff --git a/src/apps/settings/modules/shared/store/infra.ts b/src/apps/settings/modules/shared/store/infra.ts index 128dec26..70934b00 100644 --- a/src/apps/settings/modules/shared/store/infra.ts +++ b/src/apps/settings/modules/shared/store/infra.ts @@ -24,7 +24,9 @@ export type store = { }; export const LoadSettingsToStore = async (customPath?: string) => { - store.dispatch(RootActions.setAutostart(await startup.isEnabled())); + startup.isEnabled().then((value) => { + store.dispatch(RootActions.setAutostart(value)); + }); const appsTemplate = await loadAppsTemplates(); store.dispatch(