diff --git a/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx b/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx index 9d5d27fd..58db712b 100644 --- a/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx +++ b/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx @@ -66,14 +66,6 @@ function FooterNavigation() { fetchContacts(); }, []); - if (error) { - return
{error}
; - } - - if (!contacts) { - return null; - } - return (Контакти
-{contacts.email}
-{contacts.phone}
-{contacts.university}
-{contacts.address}
-+ {error} +
+ ) : contacts && ( + <> +{contacts.email}
+{contacts.phone}
+{contacts.university}
+{contacts.address}
+ > + )} +