fix payload undefined

pull/118/head
Jon Eugster 2 years ago
parent b780c7601f
commit 65f3436e24

@ -67,6 +67,7 @@ export const progressSlice = createSlice({
},
/** Set the list of rows where help is displayed */
helpEdited(state: ProgressState, action: PayloadAction<{game: string, world: string, level: number, help: number[]}>) {
addLevelProgress(state, action)
console.debug(`!setting help to: ${action.payload.help}`)
state.games[action.payload.game][action.payload.world][action.payload.level].help = action.payload.help
},

Loading…
Cancel
Save