Fix types
This commit is contained in:
parent
65d31081af
commit
f600c3f140
2 changed files with 3 additions and 10 deletions
|
@ -8,7 +8,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
|
|||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import useShop from "@saleor/hooks/useShop";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { getMutationState, maybe, transformFormToAddress } from "../../misc";
|
||||
import { getMutationState, maybe } from "../../misc";
|
||||
import CustomerAddressDialog from "../components/CustomerAddressDialog";
|
||||
import CustomerAddressListPage from "../components/CustomerAddressListPage";
|
||||
import {
|
||||
|
|
|
@ -6,12 +6,7 @@ import useUser from "@saleor/hooks/useUser";
|
|||
import { DEFAULT_INITIAL_SEARCH_DATA } from "../../../config";
|
||||
import SearchCustomers from "../../../containers/SearchCustomers";
|
||||
import { customerUrl } from "../../../customers/urls";
|
||||
import {
|
||||
getMutationState,
|
||||
maybe,
|
||||
transformAddressToForm,
|
||||
transformFormToAddress
|
||||
} from "../../../misc";
|
||||
import { getMutationState, maybe, transformAddressToForm } from "../../../misc";
|
||||
import { productUrl } from "../../../products/urls";
|
||||
import { OrderStatus } from "../../../types/globalTypes";
|
||||
import OrderAddressEditDialog from "../../components/OrderAddressEditDialog";
|
||||
|
@ -640,9 +635,7 @@ export const OrderDetails: React.StatelessComponent<OrderDetailsProps> = ({
|
|||
orderUpdate.mutate({
|
||||
id,
|
||||
input: {
|
||||
billingAddress: transformFormToAddress(
|
||||
billingAddress
|
||||
)
|
||||
billingAddress
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue