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']}
|
className={styles['recovery-phrase']}
|
||||||
>
|
>
|
||||||
{generatedMnemonic.map((word, index) => (
|
{generatedMnemonic.length === 24 &&
|
||||||
<XStack style={{ width: '100%' }} key={word}>
|
generatedMnemonic.map((word, index) => (
|
||||||
<Stack>
|
<XStack style={{ width: '100%' }} key={word + index}>
|
||||||
<Text
|
<Stack>
|
||||||
key={index}
|
<Text
|
||||||
size={19}
|
key={index}
|
||||||
weight={'semibold'}
|
size={19}
|
||||||
color="#0d162566"
|
weight={'semibold'}
|
||||||
>
|
color="#0d162566"
|
||||||
{index + 1}.
|
>
|
||||||
|
{index + 1}.
|
||||||
|
</Text>
|
||||||
|
</Stack>
|
||||||
|
<Text key={index} size={19} weight={'semibold'}>
|
||||||
|
{word}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Text key={index} size={19} weight={'semibold'}>
|
<Text key={index} size={19} weight={'semibold'}>
|
||||||
|
|
Loading…
Reference in New Issue