refresh order update

This commit is contained in:
Samandar Turgunboyev
2026-03-10 17:46:11 +05:00
parent 68dad90900
commit 86ceda48f7
4 changed files with 211 additions and 93 deletions

View File

@@ -187,7 +187,7 @@ const ProductDetail = () => {
/* ---------------- HANDLERS ---------------- */
const handleAddToCart = () => {
if (user == null) {
if (user === null) {
router.push('/auth');
return;
}
@@ -354,7 +354,7 @@ const ProductDetail = () => {
)}
onClick={(e) => {
e.stopPropagation();
if (user == null) {
if (user === null) {
router.push('/auth');
return;
} else {