Skip to content

Commit

Permalink
Fix reading decision type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaKunoichi committed Nov 3, 2022
1 parent 20b29c8 commit 9e211ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdks/aperture-js/sdk/flow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fcs } from "./utils.js";
import {
FEATURE_STATUS_LABEL,
CHECK_RESPONSE_LABEL,
Expand All @@ -21,7 +20,7 @@ export class Flow {
if (this.checkResponse === undefined) {
return true;
}
if (this.checkResponse.DecisionType === fcs.CheckResponse_DECISION_TYPE_ACCEPTED) {
if (this.checkResponse.decision_type === 'DECISION_TYPE_ACCEPTED') {
return true;
}
return false;
Expand Down

0 comments on commit 9e211ac

Please sign in to comment.