update ui

This commit is contained in:
Samandar Turgunboyev
2026-03-07 10:13:03 +05:00
parent 35374094eb
commit 855600cfe2
5 changed files with 14 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ const Navbar = () => {
useEffect(() => {
if (cartItems) {
const total = cartItems.reduce((sum, item) => sum + item.quantity, 0);
const total = cartItems.length;
setCartQuenty(total > 9 ? 9 : total);
} else if (cart_id === null) {
setCartQuenty(0);