Обновить web/app/orders/[id]/page.tsx

This commit is contained in:
ilyabratskih 2026-11-03 12:02:16 +03:00
parent 755fccf039
commit b8334cc346

View File

@ -25,7 +25,7 @@ export default function OrderPage() {
return <p className="error">{error}</p>;
}
if (!order) {
return <p>Загрузка…</p>;
return <p>Загрузка...</p>;
}
return (
@ -37,10 +37,10 @@ export default function OrderPage() {
</p>
{order.items.map((item) => (
<p key={item.product_id}>
{item.title} × {item.qty} — {item.price} ₽
{item.title} x {item.qty} - {item.price} руб.
</p>
))}
<p>Итого: {order.total} ₽</p>
<p>Итого: {order.total} руб.</p>
</>
);
}