From 51eb5ad1306e20c9ad217ced36462e741ac5f340 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 7 May 2024 14:17:55 +0300 Subject: [PATCH] apps/web: fix authContext is undefined --- apps/web/pages/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/index.jsx b/apps/web/pages/index.jsx index c914f0d..56f6242 100644 --- a/apps/web/pages/index.jsx +++ b/apps/web/pages/index.jsx @@ -2,6 +2,7 @@ import { Login } from '@/components'; import { publicRuntimeConfig } from '@/config/runtime'; import { AuthModeContext } from '@/context/auth-mode'; import Head from 'next/head'; +import { useMemo } from 'react'; const { APP_DESCRIPTION } = publicRuntimeConfig; @@ -15,8 +16,10 @@ function PageHead() { } export default function Page() { + const value = useMemo(() => ({ tfa: false }), []); + return ( - +