diff options
Diffstat (limited to 'ui/src/state')
| -rw-r--r-- | ui/src/state/store.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/state/store.ts b/ui/src/state/store.ts index 3a843d35..1e835cbd 100644 --- a/ui/src/state/store.ts +++ b/ui/src/state/store.ts @@ -17,6 +17,7 @@ import { import { invoke } from "@tauri-apps/api/core"; import { sessionToken, settings } from "./client"; +import { getWeekInfo } from "@/lib/utils"; // I'll probs want to slice this up at some point, but for now a // big blobby lump of state is fine. @@ -47,8 +48,7 @@ let state = (set: any, get: any): AtuinState => ({ shellHistory: [], calendar: [], - // @ts-ignore - weekStart: new Intl.Locale(navigator.language).getWeekInfo().firstDay, + weekStart: getWeekInfo().firstDay, refreshAliases: () => { invoke("aliases").then((aliases: any) => { |
