Skip to content

Commit

Permalink
Update ConditionalRoute.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Jul 9, 2024
1 parent 18a2ac2 commit fc4198a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/components/conditionalRoute/ConditionalRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import useCapabilities from 'web/hooks/useCapabilities';

const ConditionalRoute = ({component: Component, feature, ...rest}) => {
const capabilities = useCapabilities();
const isEnabled = capabilities._featuresEnabled[feature];
const isEnabled = capabilities.featureEnabled(feature);

return (
<Route
render={props =>
Expand Down

0 comments on commit fc4198a

Please sign in to comment.