From 8c56b8d10d7811dfbb0345943d157093e25db457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=8F=D0=BA=D0=B8=D0=BD=20=D0=90=D0=B9?= =?UTF-8?q?=D1=81=D0=B5=D0=BD?= Date: Thu, 19 Dec 2024 11:31:14 +0300 Subject: [PATCH] fix cart --- frontend/src/services/authService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/services/authService.js b/frontend/src/services/authService.js index eff49b8..8d9be9f 100644 --- a/frontend/src/services/authService.js +++ b/frontend/src/services/authService.js @@ -76,6 +76,7 @@ export const logoutUser = () => { localStorage.removeItem('isAdmin'); localStorage.removeItem('isAuthenticated'); localStorage.removeItem('id') + localStorage.removeItem('cart') store.dispatch('logout').then(() => { window.location.href = '/' })