feat: restore profile pets dropdown, fix logout handler, cleanup task titles, fix maintenance guard, add catalog settings & shipping fee calculation
Deploy Canina / deploy (push) Waiting to run

This commit is contained in:
parsa aghaei committed 2026-08-05 14:17:13 +03:30
1 parent c79b0fa394
commit 81a2837c04
5 files changed
+196 -40

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
}, [fetchProfile, fetchSettings]);
// Check Maintenance Mode (Admin / Partner bypass)
const isMaintenanceMode = getText('maintenance_mode', 'false') === 'true';
const isMaintenanceMode = getText('MAINTENANCE_MODE', 'false') === 'true' || getText('maintenance_mode', 'false') === 'true';
const isAdmin = role === 'User_Partner' || (typeof window !== 'undefined' && Boolean(localStorage.getItem('adminToken')));
if (isMaintenanceMode && !isAdmin) {