diff --git a/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx b/FrontEnd/src/components/Footer/Top/FooterNavigation.jsx index 0b26e5ba..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) { - returnLoading...
; - } - return (Контакти
-{contacts.email}
-{contacts.phone}
-{contacts.university}
-{contacts.address}
-+ {error} +
+ ) : contacts && ( + <> +{contacts.email}
+{contacts.phone}
+{contacts.university}
+{contacts.address}
+ > + )} +