diff --git a/src/layouts/app/hooks/useHeaderMenu.tsx b/src/layouts/app/hooks/useHeaderMenu.tsx index e73b1de..9def7dc 100644 --- a/src/layouts/app/hooks/useHeaderMenu.tsx +++ b/src/layouts/app/hooks/useHeaderMenu.tsx @@ -9,6 +9,7 @@ import LoyaltyAndRewardIcon from "components/Icons/LoyaltyAndRewardIcon"; import MyOrderIcon from "components/Icons/MyOrderIcon"; import { logoutThunk } from "features/auth/authSlice"; import { setLocale, setLocalesThunk } from "features/locale/localeSlice"; +import { clearCart } from "features/order/orderSlice"; import { toggleTheme } from "features/theme/themeSlice"; import i18n from "i18n/i18n"; import { useTranslation } from "react-i18next"; @@ -106,6 +107,7 @@ export default function useHeaderMenu() { label:
{t("common.logout")}
, onClick: () => { dispatch(logoutThunk()); + dispatch(clearCart()); }, }, ]