diff --git a/lib/brain.js b/lib/brain.js index 5e702d0e4..c2ed6fc21 100644 --- a/lib/brain.js +++ b/lib/brain.js @@ -2134,7 +2134,7 @@ Brain.prototype.isTierCompliant = function isTierCompliant (tier, triggerTx, req const complianceResult = customer.externalCompliance const service = trigger.externalService - switch (complianceResult[service]?.answer) { + switch (complianceResult[service] && complianceResult[service].answer) { case 'APPROVED': return true case 'REJECTED':