Skip to content

Commit a46fbac

Browse files
authored
Merge pull request #221 from johnbarhorst/master
fix typo in UpdateProduct.
2 parents 1cd1177 + 46bea83 commit a46fbac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

finished-application/frontend/components/UpdateProduct.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function UpdateProduct({ id }) {
4242
// 2. We need to get the mutation to update the product
4343
const [
4444
updateProduct,
45-
{ data: updateData, errror: updateError, loading: updateLoading },
45+
{ data: updateData, error: updateError, loading: updateLoading },
4646
] = useMutation(UPDATE_PRODUCT_MUTATION);
4747
// 2.5 Create some state for the form inputs:
4848
const { inputs, handleChange, clearForm, resetForm } = useForm(

stepped-solutions/29/UpdateProduct.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function UpdateProduct({ id }) {
4242
// 2. We need to get the mutation to update the product
4343
const [
4444
updateProduct,
45-
{ data: updateData, errror: updateError, loading: updateLoading },
45+
{ data: updateData, error: updateError, loading: updateLoading },
4646
] = useMutation(UPDATE_PRODUCT_MUTATION);
4747
// 2.5 Create some state for the form inputs:
4848
const { inputs, handleChange, clearForm, resetForm } = useForm(data?.Product);

0 commit comments

Comments
 (0)