Merge pull request #1167 from ubavic/customers-to-lower

fix: add fallback value to getAuthorizedStatus
This commit is contained in:
Rafael Taranto 2022-03-18 15:27:01 +00:00 committed by GitHub
commit 374cb5efd6

View file

@ -77,7 +77,7 @@ const getAuthorizedStatus = (it, triggers, customRequests) => {
!!R.find(
ite => R.equals(ite.requirement, triggerName),
manualOverrides
) || R.equals(R.toLower(triggers.automation), MANUAL)
) || R.equals(R.toLower(triggers.automation ?? ''), MANUAL)
)
}