Skip to content

Commit

Permalink
added setisOpen in useEffect dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hiba9201 committed Nov 5, 2023
1 parent ebfc0f3 commit 5151c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Map/Info/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Info() {
localStorage.setItem('hasVisited', '1');
}
} catch (e) {}
}, []);
}, [setIsOpen]);

const toggleSidebar = useCallback(() => {
if (isOpen) {
Expand Down

1 comment on commit 5151c09

@ekbdev
Copy link

@ekbdev ekbdev commented on 5151c09 Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for transport ready!

✅ Preview
https://transport-k51qhpbvj-ekbdev.vercel.app
https://ekbdev-transport-feat-info-button.vercel.app

Built with commit 5151c09.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.