Skip to content

Commit

Permalink
bug fix: otherRestrictions is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Apr 23, 2024
1 parent 8f0f54e commit f0301ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/BucketUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,9 @@ const processV3Abstain = (matchResults) => {
* @returns boolean
*/
const isOther = (dataUse) => {
const otherRestrictions = getOr(false)('otherRestrictions')(dataUse);
const primaryOther = !isEmpty(getOr('')('other')(dataUse));
const secondaryOther = !isEmpty(getOr('')('secondaryOther')(dataUse));
return otherRestrictions || primaryOther || secondaryOther;
return primaryOther || secondaryOther;
};

/**
Expand Down

0 comments on commit f0301ba

Please sign in to comment.