fix price

This commit is contained in:
2026-09-13 18:33:38 +03:30
parent 7f8ae8bd74
commit fdc24083cf
2 changed files with 111 additions and 25 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ export function isProductTradingHoursOpen(
auto_close_at?: string | null
} | null,
) {
if (!product) return false
// روت /gold محصول را prop نمی‌گیرد؛ نبود محصول یعنی ساعت محصول اعمال نشود (مثل open_buy)
if (!product) return true
if (isOutsideProductActivationWindow(product)) return false
if (typeof product.trade_open === 'boolean') return product.trade_open
return product.show === true