Skip to content

Commit

Permalink
es-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
salman-neslit committed Dec 20, 2024
1 parent bd50c61 commit b8f0c89
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ const useFetchNotifications = () => {
const { items } = useNotificationStore(feedClient);

useEffect(() => {
feedClient.fetch();
const fetchNotifications = async () => {
try {
await feedClient.fetch();
} catch (error) {
console.error('Failed to fetch notifications:', error);
}
};

fetchNotifications();
}, [feedClient]);

return { items };
Expand Down

0 comments on commit b8f0c89

Please sign in to comment.