Skip to content

Commit

Permalink
Fix more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Feb 14, 2021
1 parent 368f256 commit 2bf6d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Checkout/CheckoutForm.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CheckoutForm = () => {
);

// Get Cart Data.
const { loading, error, data, refetch } = useQuery(GET_CART, {
const { data, refetch } = useQuery(GET_CART, {
notifyOnNetworkStatusChange: true,
onCompleted: () => {
// Update cart in the localStorage.
Expand All @@ -58,8 +58,8 @@ const CheckoutForm = () => {
}
}, [orderData]);

const onSubmit = (data) => {
const checkOutData = createCheckoutData(data);
const onSubmit = (submitData) => {
const checkOutData = createCheckoutData(submitData);
setOrderData(checkOutData);
setRequestError(null);
};
Expand Down

0 comments on commit 2bf6d3d

Please sign in to comment.