diff --git a/src/pages/MainPage.jsx b/src/pages/MainPage.jsx index 1771c5d..c3fb5d4 100644 --- a/src/pages/MainPage.jsx +++ b/src/pages/MainPage.jsx @@ -39,7 +39,7 @@ const MainPage = () => { isCvcNumberValid && isDateValid && isPassWordValid && - isPassWordValid + isCardNumberValid ) { const newCard = { ...cardInfo, id: nextId }; setCardList((prevCardList) => [...prevCardList, newCard]);