fix: change set word reducer return
This commit is contained in:
parent
d22838d945
commit
d715e222b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue