Replace entire repo content with code from /root/shahikitchen-google/
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
import type { BookingDetails } from './entities';
|
||||
|
||||
export function isBookingComplete(booking: BookingDetails): boolean {
|
||||
const hasEventType =
|
||||
booking.bookingMode === 'table' ||
|
||||
(booking.eventType !== '' &&
|
||||
(booking.eventType !== 'other' || booking.eventTypeOther.trim().length > 0));
|
||||
|
||||
return !!(
|
||||
booking.location &&
|
||||
booking.date &&
|
||||
booking.time &&
|
||||
booking.guests &&
|
||||
booking.name &&
|
||||
booking.phone
|
||||
booking.phone &&
|
||||
hasEventType
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user