Skip to content

Commit b5c8d43

Browse files
quick fix
1 parent 51347ed commit b5c8d43

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/lib/hooks/useSettings.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
isLocalModelsEnabled,
66
LOCAL_PROVIDERS,
77
providersStore,
8-
useLatestBranch,
8+
latestBranch,
99
} from '~/lib/stores/settings';
1010
import { useCallback, useEffect, useState } from 'react';
1111
import Cookies from 'js-cookie';
@@ -22,7 +22,7 @@ export function useSettings() {
2222
const debug = useStore(isDebugMode);
2323
const eventLogs = useStore(isEventLogsEnabled);
2424
const isLocalModel = useStore(isLocalModelsEnabled);
25-
const useLatest = useStore(useLatestBranch);
25+
const useLatest = useStore(latestBranch);
2626
const [activeProviders, setActiveProviders] = useState<ProviderInfo[]>([]);
2727

2828
// Function to check if we're on stable version
@@ -90,11 +90,11 @@ export function useSettings() {
9090
// If setting hasn't been set by user, check version
9191
checkIsStableVersion().then(isStable => {
9292
const shouldUseLatest = !isStable;
93-
useLatestBranch.set(shouldUseLatest);
93+
latestBranch.set(shouldUseLatest);
9494
Cookies.set('useLatestBranch', String(shouldUseLatest));
9595
});
9696
} else {
97-
useLatestBranch.set(savedLatestBranch === 'true');
97+
latestBranch.set(savedLatestBranch === 'true');
9898
}
9999
}, []);
100100

@@ -148,7 +148,7 @@ export function useSettings() {
148148
}, []);
149149

150150
const enableLatestBranch = useCallback((enabled: boolean) => {
151-
useLatestBranch.set(enabled);
151+
latestBranch.set(enabled);
152152
logStore.logSystem(`Main branch updates ${enabled ? 'enabled' : 'disabled'}`);
153153
Cookies.set('useLatestBranch', String(enabled));
154154
}, []);

app/lib/stores/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export const isEventLogsEnabled = atom(false);
4747

4848
export const isLocalModelsEnabled = atom(true);
4949

50-
export const useLatestBranch = atom(false);
50+
export const latestBranch = atom(false);

0 commit comments

Comments
 (0)