handle missing shipping costs and black styling issue

This commit is contained in:
tedraykov
2024-07-09 11:40:14 +03:00
parent 9c05d36b31
commit c6530d3ded
19 changed files with 53 additions and 93 deletions

View File

@@ -15,7 +15,6 @@ import Image from 'next/image';
import Link from 'next/link';
import ActivateWarranty from 'components/orders/activate-warranty';
import OrderStatuses from 'components/orders/order-statuses';
import Divider from 'components/divider';
import { CoreReturn } from 'components/orders/core-return';
function Unfulfilled({ order }: { order: Order }) {
@@ -178,7 +177,7 @@ function OrderDetails({ order }: { order: Order }) {
</div>
<div className="flex flex-col gap-2">
<Label>Shipping Method</Label>
<Text>{order.shippingMethod!.name}</Text>
<Text>{order.shippingMethod ? order.shippingMethod.name : 'N/A'}</Text>
</div>
</div>
<div className="flex flex-1 flex-col gap-4">