- Updated the condition to safely check for the presence of user data in event.locals, preventing potential runtime errors when accessing nested properties.
- Updated the condition to safely check for the presence of user data in event.locals, preventing potential runtime errors when accessing nested properties.