Browse Source

fix: correct checkbox fallback value for store sync toggle #85

Claude 5 months ago
parent
commit
e3b4ad6eef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shopcall.ai-main/src/components/IntegrationsContent.tsx

+ 2 - 2
shopcall.ai-main/src/components/IntegrationsContent.tsx

@@ -729,11 +729,11 @@ export function IntegrationsContent() {
                       <div className="text-right">
                       <div className="text-right">
                         <div className="text-xs text-slate-400 mb-1">{t('integrations.autoSync')}</div>
                         <div className="text-xs text-slate-400 mb-1">{t('integrations.autoSync')}</div>
                         <Switch
                         <Switch
-                          checked={shop.store_sync_config?.[0]?.enabled ?? true}
+                          checked={shop.store_sync_config?.[0]?.enabled ?? false}
                           onCheckedChange={() => handleToggleStoreEnabled(
                           onCheckedChange={() => handleToggleStoreEnabled(
                             shop.id,
                             shop.id,
                             shop.store_name || 'this store',
                             shop.store_name || 'this store',
-                            shop.store_sync_config?.[0]?.enabled ?? true
+                            shop.store_sync_config?.[0]?.enabled ?? false
                           )}
                           )}
                           disabled={shop.sync_status === 'syncing'}
                           disabled={shop.sync_status === 'syncing'}
                           title={shop.sync_status === 'syncing' ? 'Cannot change while syncing' : 'Toggle background sync'}
                           title={shop.sync_status === 'syncing' ? 'Cannot change while syncing' : 'Toggle background sync'}