Skip to content

Commit

Permalink
bug fix: Remove error for testing sourcemaps (#2528)
Browse files Browse the repository at this point in the history
Remove error for testing sourcemaps
  • Loading branch information
heatlikeheatwave authored Jul 29, 2024
1 parent f50afe7 commit 25a6174
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 3 seconds')
}, 3000)

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

0 comments on commit 25a6174

Please sign in to comment.