From b3ac86b5cf2b9f364b006d556fe60808482a008c Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 17 Jan 2024 19:41:43 +0100 Subject: [PATCH] fix: removed opentag from jumbotron page --- client/pages/JumbotronPage.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/pages/JumbotronPage.tsx b/client/pages/JumbotronPage.tsx index 98e853b..93d05c4 100644 --- a/client/pages/JumbotronPage.tsx +++ b/client/pages/JumbotronPage.tsx @@ -13,18 +13,6 @@ import { useLoggedInUser } from '../hooks/useCurrentUser' import QRCode from 'react-qr-code' export const JumbotronPage = ({}) => { - const metadata = useContext(MetadataContext) - const db = useContext(DatabaseContext) - if (db) { - useServerAsyncCallback(async () => { - const problem = await db.getJumbotronProblem() - if (problem) { - metadata.title = `PHC Problemi | ${problem.title}` - metadata.description = problem.content - } - }) - } - const [problem] = useResource(`/api/jumbotron`, null, problem => { if (problem === null) { route(prependBaseUrl(`/error?message=${encodeURIComponent(`Il problema jumbotron non esiste`)}`))