From 281b72cca0228a4b8238bccdb2a947476b86db89 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Fri, 25 Jun 2021 09:47:54 +1000 Subject: [PATCH] delete unused reducer --- ts/state/ducks/userConfig.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ts/state/ducks/userConfig.tsx b/ts/state/ducks/userConfig.tsx index dd7001c8c..c4f7d4568 100644 --- a/ts/state/ducks/userConfig.tsx +++ b/ts/state/ducks/userConfig.tsx @@ -16,12 +16,6 @@ const userConfigSlice = createSlice({ name: 'userConfig', initialState: initialUserConfigState, reducers: { - updateUserConfig(state: UserConfigState, action: PayloadAction) { - return { - ...state, - audioAutoplay: true, - }; - }, toggleAudioAutoplay: state => { state.audioAutoplay = !state.audioAutoplay; }, @@ -29,5 +23,5 @@ const userConfigSlice = createSlice({ }); const { actions, reducer } = userConfigSlice; -export const { updateUserConfig, toggleAudioAutoplay } = actions; +export const { toggleAudioAutoplay } = actions; export const userConfigReducer = reducer;