Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Handle null shipping address
dominik-zeglenebcea1d0aa95
diff --git a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsxindex cd5d587929..4be3f96ba2 100644--- a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx@@ -242,7 +242,7 @@ const OrderCustomer = decorate<OrderCustomerProps>(<Skeleton />) : billingAddress === null ? (<Typography>{i18n.t("Not set")}</Typography>- ) : shippingAddress.id === billingAddress.id ? (+ ) : maybe(() => shippingAddress.id) === billingAddress.id ? (<Typography>{i18n.t("Same as shipping address")}</Typography>) : (<>diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsxindex ebb3d9687d..40e34f4738 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx@@ -131,4 +131,13 @@ storiesOf("Views / Orders / Order details", module)status: OrderStatus.UNFULFILLED}}/>+ ))+ .add("no shipping address", () => (+ <OrderDetailsPage+ {...props}+ order={{+ ...props.order,+ shippingAddress: null+ }}+ />));