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>) => {
|
setWord: (state, action: PayloadAction<wordProps>) => {
|
||||||
const newMnemonic = [...state.mnemonic]
|
const newMnemonic = [...state.mnemonic]
|
||||||
newMnemonic[action.payload.index] = action.payload.word
|
newMnemonic[action.payload.index] = action.payload.word
|
||||||
return { ...state, mnemonic: newMnemonic }
|
state.mnemonic = newMnemonic
|
||||||
},
|
},
|
||||||
setMnemonic: (state, action: PayloadAction<string[]>) => {
|
setMnemonic: (state, action: PayloadAction<string[]>) => {
|
||||||
state.mnemonic = action.payload
|
state.mnemonic = action.payload
|
||||||
|
|
Loading…
Reference in New Issue