mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 10:03:36 +00:00
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…
x
Reference in New Issue
Block a user