Resolved import bug.

This commit is contained in:
Patrick Fic
2023-04-12 12:38:04 -07:00
parent ff5ed92cd1
commit 165ada0f3a
3 changed files with 7 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ function ChangeOfRuleSet({
}
function WhichRulesetToApply(close_date) {
const DateMoment = moment(close_date);
const DateMoment = close_date ? moment(close_date) : moment();
const newRuleSet = RuleSets.find(
(r) =>
DateMoment.isSameOrAfter(r.range[0]) && DateMoment.isBefore(r.range[1])