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
Deploy Canina / deploy (push) Waiting to run
This commit is contained in:
1 parent
c79b0fa394
commit
81a2837c04
5 files changed
+196
-40
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user