Skip to content

Commit

Permalink
[C-2712] Clear favorites on sign-out (#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Jun 16, 2023
1 parent 97b6b94 commit 67e0012
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/common/src/store/pages/saved-page/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import tracksReducer, {
initialState as initialLineupState
} from 'store/pages/saved-page/lineups/tracks/reducer'
import { signOut } from 'store/sign-out/slice'

import { PREFIX as tracksPrefix } from './lineups/tracks/actions'

Expand Down Expand Up @@ -99,6 +100,9 @@ const actionsMap = {
({ save_item_id: id }) => id !== action.trackId
)
return newState
},
[signOut.type](state) {
return initialState
}
}

Expand Down

0 comments on commit 67e0012

Please sign in to comment.