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 (
@@ -100,11 +92,19 @@ function FooterNavigation() {

Контакти

-

{contacts.email}

-

{contacts.phone}

-

{contacts.university}

-

{contacts.address}

-
+ {error ? ( +

+ {error} +

+ ) : contacts && ( + <> +

{contacts.email}

+

{contacts.phone}

+

{contacts.university}

+

{contacts.address}

+ + )} +
); }