fix: change set word reducer return

This commit is contained in:
RadoslavDimchev 2023-10-08 13:26:26 +03:00
parent d22838d945
commit d715e222b1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const keyGenerationSlice = createSlice({
setWord: (state, action: PayloadAction<wordProps>) => {
const newMnemonic = [...state.mnemonic]
newMnemonic[action.payload.index] = action.payload.word
return { ...state, mnemonic: newMnemonic }
state.mnemonic = newMnemonic
},
setMnemonic: (state, action: PayloadAction<string[]>) => {
state.mnemonic = action.payload