Skip to content

Commit 2bf6d3d

Browse files
committed
Fix more errors
1 parent 368f256 commit 2bf6d3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/Checkout/CheckoutForm.component.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const CheckoutForm = () => {
4040
);
4141

4242
// Get Cart Data.
43-
const { loading, error, data, refetch } = useQuery(GET_CART, {
43+
const { data, refetch } = useQuery(GET_CART, {
4444
notifyOnNetworkStatusChange: true,
4545
onCompleted: () => {
4646
// Update cart in the localStorage.
@@ -58,8 +58,8 @@ const CheckoutForm = () => {
5858
}
5959
}, [orderData]);
6060

61-
const onSubmit = (data) => {
62-
const checkOutData = createCheckoutData(data);
61+
const onSubmit = (submitData) => {
62+
const checkOutData = createCheckoutData(submitData);
6363
setOrderData(checkOutData);
6464
setRequestError(null);
6565
};

0 commit comments

Comments
 (0)