Fix build: syntax errors, duplicate useEffects, import paths
All checks were successful
Build frontend / build (push) Successful in 1m26s

- Fixed broken useEffect syntax in 4 owner pages (bookings, calendar, profits, properties)
- Removed duplicate useEffect blocks
- Fixed ClientLayout import path for AuthService (../ -> ./)
This commit is contained in:
Claw AI
2026-03-28 14:53:45 +00:00
parent 6394f1d71a
commit c2235cf575
8 changed files with 75 additions and 77 deletions

View File

@ -95,8 +95,8 @@ export default function LoginPage() {
// Decode token to get user info via AuthService
const authUser = AuthService.getUser();
const userRole = authUser?.roles?.includes('Owner') ? 'owner'
: authUser?.roles?.includes('Admin') ? 'admin'
const userRole = AuthService.isAdmin() ? 'admin'
: AuthService.isOwner() ? 'owner'
: 'customer';
console.log('[Login] User role:', userRole);