remove some logs

This commit is contained in:
hamid zarghami
2025-11-06 10:04:45 +03:30
parent 8df0024f88
commit e50206bca4
5 changed files with 3 additions and 27 deletions
-4
View File
@@ -48,7 +48,6 @@ const ComparePageContent: NextPage = () => {
// اضافه کردن محصول به لیست مقایسه
const newProductIds = [...productIds, productIdStr]
console.log('New product IDs:', newProductIds)
setProductIds(newProductIds)
// به‌روزرسانی URL با محصولات جدید
@@ -65,12 +64,10 @@ const ComparePageContent: NextPage = () => {
const productId = search.get('productId')
const productIdsParam = search.get('productIds')
console.log('URL params - productId:', productId, 'productIds:', productIdsParam)
if (productIdsParam) {
// اگر productIds در URL موجود است، آن را استفاده کن
const ids = productIdsParam.split(',').filter(id => id.trim())
console.log('Parsed product IDs:', ids)
setProductIds(ids)
// حذف productId قدیمی از URL
@@ -81,7 +78,6 @@ const ComparePageContent: NextPage = () => {
}
} else if (productId) {
// اگر فقط productId موجود است، آن را به productIds تبدیل کن
console.log('Single product ID:', productId)
setProductIds([productId])
// URL را به productIds تبدیل کن