fix(recovery-phrase): length of array and item key
This commit is contained in:
parent
acd06d8fd0
commit
ee9a165f44
|
@ -64,16 +64,21 @@ const RecoveryPhrase = ({ isKeystoreFiles }: RecoveryPhraseProps) => {
|
|||
}}
|
||||
className={styles['recovery-phrase']}
|
||||
>
|
||||
{generatedMnemonic.map((word, index) => (
|
||||
<XStack style={{ width: '100%' }} key={word}>
|
||||
<Stack>
|
||||
<Text
|
||||
key={index}
|
||||
size={19}
|
||||
weight={'semibold'}
|
||||
color="#0d162566"
|
||||
>
|
||||
{index + 1}.
|
||||
{generatedMnemonic.length === 24 &&
|
||||
generatedMnemonic.map((word, index) => (
|
||||
<XStack style={{ width: '100%' }} key={word + index}>
|
||||
<Stack>
|
||||
<Text
|
||||
key={index}
|
||||
size={19}
|
||||
weight={'semibold'}
|
||||
color="#0d162566"
|
||||
>
|
||||
{index + 1}.
|
||||
</Text>
|
||||
</Stack>
|
||||
<Text key={index} size={19} weight={'semibold'}>
|
||||
{word}
|
||||
</Text>
|
||||
</Stack>
|
||||
<Text key={index} size={19} weight={'semibold'}>
|
||||
|
|
Loading…
Reference in New Issue