diff --git a/components/__tests__/reducers.test.ts b/components/__tests__/reducers.test.ts index 5f451c3..c2b4a49 100644 --- a/components/__tests__/reducers.test.ts +++ b/components/__tests__/reducers.test.ts @@ -170,7 +170,3 @@ describe('test POP_FIRST_TRENDING', () => { }) }) }) -/* - case POP_FIRST_TRENDING: - return {...state, trendingMovies: [...state.trendingMovies.filter((item: Movie) => item !== action.payload)]}; -*/ \ No newline at end of file diff --git a/redux/reducers/appReducer.ts b/redux/reducers/appReducer.ts index fd953ca..d3ac46f 100644 --- a/redux/reducers/appReducer.ts +++ b/redux/reducers/appReducer.ts @@ -3,7 +3,7 @@ import Movie from "../../model/Movie"; const initialState = { trendingIDs: [], - trendingMovies: [], + trendingMovies: [] as Movie[], watchLaterMovies: [] as Movie[], favouriteMovies: [] as Movie[], }