We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5924e0e commit 853cc70Copy full SHA for 853cc70
src/features/profile/profileSlice.ts
@@ -49,7 +49,6 @@ export const useLoggedInProfileUser = (username?: string) => {
49
useEffect(() => {
50
if (query.isSuccess && query.data) {
51
// Set the logged in profile once it loads
52
- // If profile DNE, (eg auth service local user), set profile to undefined
53
const queryUsername = query.data?.[0]?.[0]?.user?.username;
54
if (query.data[0][0] && queryUsername === username) {
55
dispatch(setLoggedInProfile(query.data[0][0]));
0 commit comments