Skip to content

Commit

Permalink
fix calendarId var name
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Apr 2, 2024
1 parent 0e5c039 commit 13abf29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Bookings: React.FC<BookingsProps> = ({
<td className="px-2 py-4 w-40 flex flex-col items-start">
<BookingActions
status={status}
calendarEventId={booking.calendarEventId}
calendarEventId={booking.calendarId}
/>
</td>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function getBookingStatus(
): BookingStatusLabel {
const bookingStatusLabel = () => {
const bookingStatusMatch = bookingStatuses.filter(
(row) => row.calendarEventId === booking.calendarEventId
(row) => row.calendarId === booking.calendarId
)[0];
if (bookingStatusMatch === undefined) return BookingStatusLabel.UNKNOWN;
if (bookingStatusMatch.checkedInAt !== '') {
Expand Down
4 changes: 2 additions & 2 deletions media_commons_booking_app/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Ban = {
};

export type Booking = Inputs & {
calendarEventId: string;
calendarId: string;
email: string;
startDate: string;
endDate: string;
Expand All @@ -18,7 +18,7 @@ export type Booking = Inputs & {
};

export type BookingStatus = {
calendarEventId: string;
calendarId: string;
email: string;
requestedAt: string;
firstApprovedAt: string;
Expand Down

0 comments on commit 13abf29

Please sign in to comment.