Skip to content

Commit

Permalink
fixed bug - changed phone number object key
Browse files Browse the repository at this point in the history
  • Loading branch information
anettgor committed Apr 30, 2023
1 parent 63da4f0 commit 1cc8ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ContactForm/ContactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const ContactForm = () => {
const number = form.elements.number.value;
const newContact = {
name: name,
number: number,
phone: number,
};
if (
contacts.find(
Expand Down

0 comments on commit 1cc8ef1

Please sign in to comment.