@@ -143,22 +143,17 @@ export const RecoverAccount = () => {
143143
144144 useEffect ( ( ) => {
145145 const phraseInputsArr : string [ ] = [ ] ;
146- let PHRASE_LENGTH = SHORT_PHRASE ;
146+ const PHRASE_LENGTH = isLongPhrase ? LONG_PHRASE : SHORT_PHRASE ;
147147
148- // delay to account for css transition
149- setTimeout ( ( ) => {
150- PHRASE_LENGTH = isLongPhrase ? LONG_PHRASE : SHORT_PHRASE ;
151-
152- for ( let i = 1 ; i <= PHRASE_LENGTH ; i ++ ) {
153- phraseInputsArr . push ( `MnemonicPhrase-${ i } ` ) ;
154- }
155- setPhraseInputs ( phraseInputsArr ) ;
148+ for ( let i = 1 ; i <= PHRASE_LENGTH ; i ++ ) {
149+ phraseInputsArr . push ( `MnemonicPhrase-${ i } ` ) ;
150+ }
151+ setPhraseInputs ( phraseInputsArr ) ;
156152
157- if ( PHRASE_LENGTH === SHORT_PHRASE ) {
158- // when going back to 12 words, clear all the fields
159- setMnemonicPhraseArr ( [ ] ) ;
160- }
161- } , 150 ) ;
153+ if ( PHRASE_LENGTH === SHORT_PHRASE ) {
154+ // when going back to 12 words, clear all the fields
155+ setMnemonicPhraseArr ( [ ] ) ;
156+ }
162157 } , [ isLongPhrase ] ) ;
163158
164159 useEffect ( ( ) => {
@@ -253,13 +248,7 @@ export const RecoverAccount = () => {
253248 >
254249 < Card variant = "primary" >
255250 < div className = "RecoverAccount__mnemonic-wrapper" >
256- < div
257- className = { `RecoverAccount__mnemonic-input ${
258- isLongPhrase
259- ? "RecoverAccount__mnemonic-input--long-phrase"
260- : ""
261- } `}
262- >
251+ < div className = "RecoverAccount__mnemonic-input" >
263252 { phraseInputs . map ( ( phraseInput , i ) => (
264253 < PhraseInput
265254 key = { phraseInput }
0 commit comments