diff --git a/packages/lib/bookings/filterHostsByLeadThreshold.ts b/packages/lib/bookings/filterHostsByLeadThreshold.ts index dd598cab9a..addb9b4712 100644 --- a/packages/lib/bookings/filterHostsByLeadThreshold.ts +++ b/packages/lib/bookings/filterHostsByLeadThreshold.ts @@ -103,7 +103,7 @@ export const filterHostsByLeadThreshold = async >({ if (maxLeadThreshold === 0) { throw new Error(errorCodes.MAX_LEAD_THRESHOLD_FALSY); } - if (maxLeadThreshold === null) { + if (maxLeadThreshold === null || hosts.length < 1) { return hosts; // don't apply filter. }