Skip to content

Commit

Permalink
Update AppContext.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 25, 2024
1 parent b953903 commit 461d538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-app/src/context/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const AppContextProvider = ({ children }: AppContextProviderProps) => {
isConversation,
} = useRouteParams();
const { api, ready: apiReady } = useApi();
const { session } = useAuth();
const { session, userDID } = useAuth();
const router = useRouter();
const dispatch = useAppDispatch();

Expand Down Expand Up @@ -176,7 +176,7 @@ export const AppContextProvider = ({ children }: AppContextProviderProps) => {

isFetchingConversationRef.current = false;
} catch (error) {
console.error("Error fetching conversation:", error);
router.push(`/${userDID}`);
}
}, [dispatch, apiReady, api, conversationId]);

Expand Down

0 comments on commit 461d538

Please sign in to comment.