From f5a9c250cb2b2dc277993ba8770573e45ba28ead Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:47:08 +1200 Subject: [PATCH] Fix TOTP success navigation --- settings/src/components/settings.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/settings/src/components/settings.js b/settings/src/components/settings.js index 5deb2bb9..41bff482 100644 --- a/settings/src/components/settings.js +++ b/settings/src/components/settings.js @@ -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 = {