Merged in fix/SW-3254-error-fromdate_cannot_be_ (pull request #2676)
Fix/SW-3254 error fromdate cannot be * fix(SW-3254): Implemented date valdaton on select-hotel page * fix(SW-3254): Updated the browser URL to show proper booking dates * fix(SW-3254): Fixed select-rate when invalid dates searched * fix(SW-3254): Forced no availability for past dates * fix(SW-3254) Optimised code * fix(SW-3254): Optimised code Approved-by: Linus Flood
This commit is contained in:
@@ -18,7 +18,7 @@ export default async function NoAvailabilityAlert({
|
||||
const intl = await getIntl()
|
||||
const lang = await getLang()
|
||||
|
||||
if (bookingCode && isBookingCodeRateNotAvailable) {
|
||||
if (bookingCode && isBookingCodeRateNotAvailable && hotelsLength > 0) {
|
||||
const bookingCodeText = intl.formatMessage(
|
||||
{
|
||||
defaultMessage:
|
||||
|
||||
Reference in New Issue
Block a user