diff --git a/frontend/src/components/banner/topBanner.tsx b/frontend/src/components/banner/topBanner.tsx index cf65aee73f..e1988b8b95 100644 --- a/frontend/src/components/banner/topBanner.tsx +++ b/frontend/src/components/banner/topBanner.tsx @@ -10,11 +10,12 @@ export function TopBanner() { const [dangerousInner, setDangerousInner] = useState(null); useEffect(() => { - (async () => { + // TODO: Spotted this - is this meant to be ran? The IIFE is never called at the end. + async () => { // @ts-expect-error - setDangerousInner((await htmlFromMarkdown(data?.message)).__html) - }) - }, [data]) + setDangerousInner((await htmlFromMarkdown(data?.message)).__html); + }; + }, [data]); return ( <> @@ -24,7 +25,7 @@ export function TopBanner() {