diff --git a/client/src/components/report-center-modal/report-center-modal.component.jsx b/client/src/components/report-center-modal/report-center-modal.component.jsx index f518fd94e..e9f24a163 100644 --- a/client/src/components/report-center-modal/report-center-modal.component.jsx +++ b/client/src/components/report-center-modal/report-center-modal.component.jsx @@ -283,7 +283,12 @@ export function ReportCenterModalComponent({ reportCenterModal, bodyshop }) { }, { validator: (_, value) => { - if (value && value[0] && value[1] && process.env.NODE_ENV === "production") { + if ( + (!import.meta.env.VITE_APP_IS_TEST && import.meta.env.PROD) && + value && + value[0] && + value[1] + ) { const diffInDays = (value[1] - value[0]) / (1000 * 3600 * 24); if (diffInDays > 92) { return Promise.reject(t("general.validation.dateRangeExceeded"));