Skip to content

Commit 853cc70

Browse files
committedFeb 11, 2025
Update src/features/profile/profileSlice.ts
1 parent 5924e0e commit 853cc70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎src/features/profile/profileSlice.ts

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const useLoggedInProfileUser = (username?: string) => {
4949
useEffect(() => {
5050
if (query.isSuccess && query.data) {
5151
// Set the logged in profile once it loads
52-
// If profile DNE, (eg auth service local user), set profile to undefined
5352
const queryUsername = query.data?.[0]?.[0]?.user?.username;
5453
if (query.data[0][0] && queryUsername === username) {
5554
dispatch(setLoggedInProfile(query.data[0][0]));

0 commit comments

Comments
 (0)