update handleProductSelection

This commit is contained in:
NW
2024-12-14 15:06:22 +00:00
parent 2aea225e2e
commit 682246675e

View File

@@ -309,7 +309,6 @@ export default class UserProductHandler {
📦 Available: ${product.quantity_in_stock} pcs 📦 Available: ${product.quantity_in_stock} pcs
Category: ${product.category_name} Category: ${product.category_name}
Subcategory: ${product.subcategory_name}
`; `;
let photoMessageId = null; let photoMessageId = null;
@@ -340,7 +339,7 @@ Subcategory: ${product.subcategory_name}
callback_game: product.quantity_in_stock <= 1 ? {} : null // Disabled if stock is 1 or less callback_game: product.quantity_in_stock <= 1 ? {} : null // Disabled if stock is 1 or less
} }
], ],
[{ text: '« Back', callback_data: `shop_category_${product.location_id}_${product.category_id}` }] // Возврат к категории [{ text: `« Back ${product.category_name}`, callback_data: `shop_category_${product.location_id}_${product.category_id}` }] // Возврат к категории
] ]
}; };