Index: frontend/src/context/FavoritesContext.tsx
===================================================================
--- frontend/src/context/FavoritesContext.tsx	(revision d450857c320b2ac0b3ca98f976b373659ab4eb00)
+++ frontend/src/context/FavoritesContext.tsx	(revision 421f18149cdbdcd1e3ed5cff4864da53da47f8ec)
@@ -2,5 +2,5 @@
 import { useAuth } from '../hooks/useAuth'; 
 import useAxiosAuth from '../hooks/useAxiosAuth';
-
+import { toast } from 'react-toastify';
 interface FavoritesContextType {
     favoriteIds: Set<number>; 
@@ -51,5 +51,5 @@
             console.error('Failed to toggle favorite, reverting.', error);
             setFavoriteIds(originalFavorites); // Revert on error
-            alert("Error: Could not update favorite status.");
+            toast.error("Мора да си најавен за да додадеш предмет во омилени.");
         }
     }, [axiosAuth, favoriteIds]);
