From 7cd1910f82e6e3fdd830ec43996f429b49032886 Mon Sep 17 00:00:00 2001 From: ltueth <49448537+ltueth@users.noreply.github.com> Date: Sat, 12 Mar 2022 20:49:10 +0100 Subject: [PATCH] Adds missing openSidebar to useUI hook --- site/components/common/UserNav/UserNav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/components/common/UserNav/UserNav.tsx b/site/components/common/UserNav/UserNav.tsx index c49410eae..5214f52af 100644 --- a/site/components/common/UserNav/UserNav.tsx +++ b/site/components/common/UserNav/UserNav.tsx @@ -21,7 +21,7 @@ const countItem = (count: number, item: LineItem) => count + item.quantity const UserNav: FC = ({ className }) => { const { data } = useCart() const { data: customer } = useCustomer() - const { toggleSidebar, closeSidebarIfPresent, openModal, setSidebarView } = + const { openSidebar, closeSidebarIfPresent, openModal, setSidebarView } = useUI() const itemsCount = data?.lineItems.reduce(countItem, 0) ?? 0