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) { - return

Loading...

; - } - 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}

+ + )} +
); }