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 Aug 28, 2024
1 parent 2e48052 commit c889ef6
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 @@ -20,7 +20,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 c889ef6

Please sign in to comment.