mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 11:55:42 +00:00
refactor( iam ): migrate guest booking to IAM; make Passenger.userId nullable
This commit is contained in:
@@ -27,7 +27,7 @@ export class DashboardService {
|
||||
|
||||
const hour = now.getHours();
|
||||
const greetingKey = hour < 12 ? 'MORNING' : hour < 17 ? 'AFTERNOON' : 'EVENING';
|
||||
const firstName = passenger?.user.fullName.split(' ')[0] ?? '';
|
||||
const firstName = passenger?.user?.fullName?.split(' ')[0] ?? '';
|
||||
const seat = upcomingBooking?.seats[0];
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user