mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
make getBookingStatus work without a booking
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { BOOKING_STATUS } from '../db/enums'
|
||||
|
||||
export function getBookingStatus(booking: { status: BOOKING_STATUS }) {
|
||||
switch (booking.status) {
|
||||
export function getBookingStatus(status: BOOKING_STATUS) {
|
||||
switch (status) {
|
||||
case BOOKING_STATUS.REQUESTED:
|
||||
return 'Angefragt'
|
||||
case BOOKING_STATUS.CONFIRMED:
|
||||
|
||||
Reference in New Issue
Block a user