Skip to content

Commit 75b6cc2

Browse files
Update code_samples/authorization/get_decision.mdx
resolving comments Co-authored-by: Eugene Yakhnenko <eugenioenko@gmail.com>
1 parent 5e28100 commit 75b6cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_samples/authorization/get_decision.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ async function main() {
260260

261261
response.decisionResponses.forEach(decision => {
262262
console.log('Decision:', decision.decision);
263-
if (decision.decision === 'DECISION_PERMIT' && decision.obligations?.length > 0) {
263+
if (decision.decision === DecisionResponse_Decision.PERMIT && decision.obligations?.length > 0) {
264264
console.log('Obligations:', decision.obligations);
265265
}
266266
});

0 commit comments

Comments
 (0)