mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
Update app/store/sync.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -52,7 +52,11 @@ export const useSyncStore = createPersistStore(
|
||||
(set, get) => ({
|
||||
cloudSync(): boolean {
|
||||
const config = get()[get().provider];
|
||||
return Object.values(config).every((c) => c.toString().length > 0);
|
||||
if (!config) {
|
||||
return false;
|
||||
}
|
||||
return Object.values(config).every((c) => c != null && c.toString().length > 0);
|
||||
}
|
||||
},
|
||||
|
||||
markSyncTime() {
|
||||
|
||||
Reference in New Issue
Block a user