UPD: data property missing

This commit is contained in:
John Huang@tthqws02 2021-11-21 23:05:28 -05:00
parent 9b7e2af450
commit 84ab5f371c
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ const useSetOrder = () => {
};
// Apollo useMutation Hook
const [updateOrderData, { results }] = useMutation(setOrderInfoAPI);
return [{ results }, setOrder];
const [updateOrderData, { data }] = useMutation(setOrderInfoAPI);
return [{ data }, setOrder];
};
export { useSetOrder };

View File

@ -7,7 +7,7 @@ const sampleOrder = {
{ productName: "W2C", price: 29.99 },
{ productName: "PSU-24VDC", price: 19.99}
],
totalAmount: 179.97,
totalAmount: 1779.97,
orderDate: "2021-11-22",
email: "pocketooth@gmail.com",
orderByFirstName: "John",