Skip to content

Commit

Permalink
Remove error for testing purposes from homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
heatlikeheatwave committed Jul 30, 2024
1 parent 8c06630 commit 5d8b9f8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/views/homepage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

// Third-party imports
import { ReactElement, useEffect } from 'react'
import { ReactElement } from 'react'

// Global imports
import BaseLayout from 'layouts/base-layout'
Expand All @@ -20,13 +20,6 @@ import {
import s from './homepage.module.css'

function HomePageView(): ReactElement {
useEffect(() => {
const timer = setTimeout(() => {
throw new Error('This is a new test error thrown after 5 seconds')
}, 5000)

return () => clearTimeout(timer) // Cleanup the timer on component unmount
}, [])
return (
<BaseLayout mobileMenuSlot={<MobileMenuLevelsGeneric />}>
<div className={s.root}>
Expand Down

0 comments on commit 5d8b9f8

Please sign in to comment.