From f283053e2330edbd3687f391496821356721efcc Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 6 Apr 2025 11:13:04 +0100 Subject: [PATCH] [frontend]: Fix not fetching favourites --- frontend/src/components/Sidebar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx index e145d2c..9d38ec7 100644 --- a/frontend/src/components/Sidebar.jsx +++ b/frontend/src/components/Sidebar.jsx @@ -210,7 +210,7 @@ const Sidebar = ({ selectedSources, setSelectedSources, clusteringEnabled, setCl Cookies.set("selectedSources", JSON.stringify(selectedSources), { expires: 365 }); Cookies.set("numberInputValue", numberInputValue, { expires: 365 }); // Save numberInputValue to cookie - if (showFavouritesOnly && (!favourites.length || favourites.length < 1)) { + if (showFavouritesOnly && (favourites.Bus.length < 1 && favourites.BusStop.length < 1 && favourites.IrishRailTrain.length < 1 && favourites.IrishRailStation.length < 1 && favourites.LuasStop.length < 1)) { toast.warn("You haven't added any favourites yet!"); return; }