Skip to content

Commit

Permalink
fix: nodejs compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto authored Sep 16, 2024
1 parent 782bdd6 commit ffceca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit ffceca9

Please sign in to comment.