diff --git a/src/hooks/useKnockoutExplorer.ts b/src/hooks/useKnockoutExplorer.ts index 690baa658..8c48763e4 100644 --- a/src/hooks/useKnockoutExplorer.ts +++ b/src/hooks/useKnockoutExplorer.ts @@ -488,8 +488,7 @@ async function configurePortal(): Promise { updateUserContext({ dataPlaneRbacEnabled }); useDataPlaneRbac.setState({ dataPlaneRbacEnabled: dataPlaneRbacEnabled }); } else { - let dataPlaneRbacEnabled; - dataPlaneRbacEnabled = account.properties.disableLocalAuth; + const dataPlaneRbacEnabled = account.properties.disableLocalAuth; updateUserContext({ dataPlaneRbacEnabled }); useDataPlaneRbac.setState({ dataPlaneRbacEnabled: dataPlaneRbacEnabled });