Skip to content

Commit e64ec14

Browse files
Update src/components/HeroHeader/HeroHeader.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 852d3b8 commit e64ec14

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/HeroHeader/HeroHeader.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ export default function HeroHeader() {
88
const breakpoint = 768;
99

1010
useEffect(() => {
11-
const rafId = requestAnimationFrame(() =>
12-
setScreenWidth(window.innerWidth)
13-
);
11+
setScreenWidth(window.innerWidth);
1412

1513
const handleResize = () => setScreenWidth(window.innerWidth);
1614

0 commit comments

Comments
 (0)