Skip to content

Commit

Permalink
Fix TOTP success navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Sep 2, 2024
1 parent 0e1cea8 commit f5a9c25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion settings/src/components/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import { GlobalContext } from '../script';
* Render the correct component based on the URL.
*/
export default function Settings() {
const { backupCodesEnabled, navigateToScreen, screen } = useContext( GlobalContext );
const {
user: { backupCodesEnabled },
navigateToScreen,
screen,
} = useContext( GlobalContext );

// The index is the URL slug and the value is the React component.
const components = {
Expand Down

0 comments on commit f5a9c25

Please sign in to comment.