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 = {