Skip to content

Commit

Permalink
fix: has override logic to check enabled state differences (#5094)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Feb 12, 2025
1 parent 1344a17 commit 328443e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/web/components/pages/UserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,10 @@ const UserPage: FC<UserPageType> = (props) => {
Utils.featureStateToValue(v) ===
actualValue,
)
const flagDifferent =
flagEnabledDifferent ||
flagValueDifferent

const hasSegmentOverride =
flagValueDifferent &&
(flagEnabledDifferent ||
flagValueDifferent) &&
!hasUserOverride &&
!isMultiVariateOverride

Expand Down

0 comments on commit 328443e

Please sign in to comment.