diff --git a/src/App.js b/src/App.js
index ca7553e..5014984 100644
--- a/src/App.js
+++ b/src/App.js
@@ -13,9 +13,6 @@ function App() {
const [cardInfo, setCardInfo] = useState([]);
const [userData, setUserData] = useState({});
- const selectedCity = userData.selectedCity;
- const identification = userData.unique;
-
const handleButtonValue = (value) => {
setIsHidden(true);
setTimeout(() => {
@@ -29,7 +26,6 @@ function App() {
axios.get('https://easytravel.zetcraft.ru/v1/GetAllCards')
.then(response => {
setCardInfo(response.data);
- console.log(cardInfo.length);
})
.catch(error => {
console.error('Error fetching data:', error);
@@ -39,7 +35,6 @@ function App() {
}, []);
useEffect(() => {
- console.log(userData);
// Загрузка userData из localStorage при монтировании компонента
const savedUserData = JSON.parse(localStorage.getItem('userData'));
if (savedUserData) {
@@ -62,7 +57,7 @@ function App() {
content =
break;
case '/main':
- content =
+ content =
break;
case '/city':
content =
@@ -75,7 +70,7 @@ function App() {
return (
- {arrayLength !== 0 ? : content }
+ {arrayLength !== 0 ? : content}
);
}
diff --git a/src/components/City/City.js b/src/components/City/City.js
index f0143bb..d3d90e4 100644
--- a/src/components/City/City.js
+++ b/src/components/City/City.js
@@ -109,7 +109,8 @@ const City = (props) => {