aboutsummaryrefslogtreecommitdiff
path: root/src/components/Drawer
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-12 03:39:48 +0300
committereug-vs <eug-vs@keemail.me>2020-08-12 03:41:13 +0300
commit68c7660e13fc5613ef26de752bc360a792b3f935 (patch)
treebb3826d74842bc628d1c6aa9c43aae919faffcea /src/components/Drawer
parentfc63251148397c2c9b2318c898b25d08066ee6b1 (diff)
downloadwhich-ui-68c7660e13fc5613ef26de752bc360a792b3f935.tar.gz
feat: prevent duplicate snackbars
Diffstat (limited to 'src/components/Drawer')
-rw-r--r--src/components/Drawer/Drawer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Drawer/Drawer.tsx b/src/components/Drawer/Drawer.tsx
index 76b5120..9b416b0 100644
--- a/src/components/Drawer/Drawer.tsx
+++ b/src/components/Drawer/Drawer.tsx
@@ -44,7 +44,7 @@ const Drawer: React.FC<PropTypes> = React.memo(({ isOpen, setIsOpen }) => {
useEffect(() => {
// Close drawer on navigations
return history.listen(() => handleClose());
- }, [history, handleClose])
+ }, [history, handleClose]);
const handleLogout = useCallback(() => {
logout();