diff --git a/src/common/components/InformationBar/InformationBar.js b/src/common/components/InformationBar/InformationBar.js index 111e5e84df66ba64d5dd25c94d3735a1b19e33f9..c2bcd95c637e58cfa6849d20856b4ea5c588b24a 100644 --- a/src/common/components/InformationBar/InformationBar.js +++ b/src/common/components/InformationBar/InformationBar.js @@ -20,7 +20,11 @@ function InformationBar({ useEffect(() => { getServiceStatus(); // Avoid race problem with channel getPreference and avoid duplicate global getPrefereces call - if (preferences.global.length === 0 && !window.location.pathname.startsWith('/channels')) { + if ( + isAuthenticated && + preferences.global.length === 0 && + !window.location.pathname.startsWith('/channels') + ) { getPreferences(null, true); } // eslint-disable-next-line react-hooks/exhaustive-deps