diff --git a/src/pages/index.tsx b/src/pages/index.tsx index abdfb4e..bb35c75 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -39,7 +39,7 @@ interface IndexProp { export default function Home(props: IndexProp): React.ReactElement { const { simulationParams, setSimulationParams, worker } = props; useEffect(() => { - const confirmExit = (e: BeforeUnloadEvent) => { + const confirmExit = (e: BeforeUnloadEvent): void => { console.log('beforeunload event triggered'); e.preventDefault(); e.returnValue = '';