update catch block

This commit is contained in:
JeevaRamanathan M
2024-10-19 04:46:46 +00:00
parent a185b2a12a
commit 6a024b0ced

View File

@@ -103,7 +103,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
})
.catch((error) => {
console.error('Failed to fetch conversations: ', error);
dispatch(setConversations({ ...conversations, loading: false }));
dispatch(setConversations({ data: null, loading: false }));
});
}