update goods
This commit is contained in:
@@ -63,7 +63,7 @@ export function CartPage() {
|
||||
<Stack spacing={2}>
|
||||
{items.map((x) =>
|
||||
(() => {
|
||||
const available = x.product.inStock ? x.product.quantity : 1
|
||||
const available = x.product.quantity
|
||||
const canInc = x.qty < available
|
||||
const over = x.qty > available
|
||||
return (
|
||||
@@ -83,9 +83,9 @@ export function CartPage() {
|
||||
<Typography color="text.secondary" variant="body2">
|
||||
{formatPriceRub(x.product.priceCents)} · {x.qty} шт. · Доступно: {available}
|
||||
</Typography>
|
||||
{!x.product.inStock && (
|
||||
{x.product.quantity === 0 && (
|
||||
<Typography color="text.secondary" variant="caption">
|
||||
Под заказ — доставка после изготовления
|
||||
Нет в наличии
|
||||
</Typography>
|
||||
)}
|
||||
{over && (
|
||||
|
||||
Reference in New Issue
Block a user