Skip to content

Commit

Permalink
fix build issue with user actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Nov 7, 2024
1 parent 6e419f7 commit fc4deb4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/store/user/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { Network } from 'src/network'
import { generateLocalData, isUser } from 'src/utils'
import { store } from '../store'
import { userSlice } from './userSlice'
import {
thunkFetchUserInfo,
thunkGetUserSpotifyToken,
thunkLoginUser,
} from './userThunks'
import { thunkFetchUserInfo, thunkLoginUser } from './userThunks'

const { logout, set, update } = userSlice.actions

Expand Down Expand Up @@ -107,7 +103,6 @@ export const initializeUser = async () => {

if (isUser(user)) {
setUser(user, token)
await store.dispatch(thunkGetUserSpotifyToken())
} else {
logoutUser()
}
Expand Down

0 comments on commit fc4deb4

Please sign in to comment.