From 6145c7ad90031f042b1ea494cce0102eb59269aa Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Tue, 31 May 2022 14:36:20 +0100 Subject: [PATCH] Bug - Admin Shell Duplicated (#2933) * Fix additional shell in admin * Update headings Co-authored-by: Peer Richelsen Co-authored-by: Bailey Pumfleet --- apps/web/pages/settings/admin.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/web/pages/settings/admin.tsx b/apps/web/pages/settings/admin.tsx index d9a20e13c5..f92c434b0d 100644 --- a/apps/web/pages/settings/admin.tsx +++ b/apps/web/pages/settings/admin.tsx @@ -14,7 +14,7 @@ import Shell from "@components/Shell"; function AdminView() { const { t } = useLocale(); - const usernameRef = useRef(null!); + const usernameRef = useRef(null); return (
@@ -23,7 +23,7 @@ function AdminView() { className="mb-6 w-full sm:w-1/2" onSubmit={(e) => { e.preventDefault(); - const enteredUsername = usernameRef.current.value.toLowerCase(); + const enteredUsername = usernameRef.current?.value.toLowerCase(); signIn("impersonation-auth", { username: enteredUsername }).then((res) => { console.log(res); }); @@ -55,11 +55,9 @@ export default function Admin() { const { t } = useLocale(); return ( - - - - - + + + ); }