diff --git a/src/redux/ValidatorOnboarding/KeyGeneration/slice.ts b/src/redux/ValidatorOnboarding/KeyGeneration/slice.ts index a4eef6d7..fada9de8 100644 --- a/src/redux/ValidatorOnboarding/KeyGeneration/slice.ts +++ b/src/redux/ValidatorOnboarding/KeyGeneration/slice.ts @@ -5,6 +5,7 @@ type KeyGenerationState = { isCopyPastedPhrase: boolean isRightPhrase: boolean validWords: boolean[] + generatedMnemonic: string[] } type wordProps = { @@ -17,6 +18,7 @@ const initialState: KeyGenerationState = { isCopyPastedPhrase: false, isRightPhrase: false, validWords: Array(24).fill(true), + generatedMnemonic: Array(24).fill(''), } const keyGenerationSlice = createSlice({ @@ -40,10 +42,19 @@ const keyGenerationSlice = createSlice({ setValidWords: (state, action: PayloadAction) => { state.validWords = action.payload }, + setGeneratedMnemonic: (state, action: PayloadAction) => { + state.generatedMnemonic = action.payload + }, }, }) -export const { setWord, setMnemonic, setIsCopyPastedPhrase, setIsRightPhrase, setValidWords } = - keyGenerationSlice.actions +export const { + setWord, + setMnemonic, + setIsCopyPastedPhrase, + setIsRightPhrase, + setValidWords, + setGeneratedMnemonic, +} = keyGenerationSlice.actions export default keyGenerationSlice.reducer