mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix
This commit is contained in:
@@ -29,8 +29,10 @@ export function DayAvailabilityHint({
|
||||
tradeDirection,
|
||||
}: DayAvailabilityHintProps) {
|
||||
const { data, isLoading, isError } = useQuery({
|
||||
...api.bookings.getDayAvailability.queryOptions({ bookingId, date }),
|
||||
enabled: Boolean(bookingId && date),
|
||||
...api.bookings.getDayAvailability.queryOptions({
|
||||
input: { bookingId, date },
|
||||
enabled: Boolean(bookingId && date),
|
||||
}),
|
||||
});
|
||||
|
||||
if (!date) return null;
|
||||
|
||||
Reference in New Issue
Block a user