fix price
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user