We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21e6645 commit 5c7a665Copy full SHA for 5c7a665
src/components/landing/TshirtOrderForm.js
@@ -31,7 +31,7 @@ const ORDER_TSHIRT = gql`
31
32
const TshirtOrderForm = () => (
33
<Query query={ADDRESS_QUERY}>
34
- {({ data: { currentUser: { id, shippingAddress } = {} } }) => (
+ {({ data }) => (
35
<Mutation mutation={ORDER_TSHIRT}>
36
{orderTshirt => (
37
<Formik
@@ -87,6 +87,8 @@ const TshirtOrderForm = () => (
87
values.size
88
}%0D%0AShipping address:%0D%0A%0D%0A%0D%0A%0D%0AUID: ${id}`
89
90
+ const { id, shippingAddress } = (data && data.currentUser) || {}
91
+
92
return (
93
<form className="TshirtOrderForm" onSubmit={handleSubmit}>
94
<FormControl error={showProductError}>
0 commit comments