Skip to content

Commit

Permalink
Merge pull request #94 from Esya/fix/mnemonic-double-word
Browse files Browse the repository at this point in the history
fix: handle rare case with duplicates in mnemonic validation
  • Loading branch information
Esya authored May 25, 2021
2 parents c9b63be + 97e498d commit d42b3fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/MnemonicValidation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ export function MnemonicValidation({ validMnemonic, successHandler, abortHandler
)}
</Text>
<Grid columns={size !== 'small' ? 'small' : '100%'} gap="small">
{choices.map(w => (
{choices.map((w, i) => (
<Button
label={w}
style={{ borderRadius: '4px' }}
onClick={() => wordClicked(w)}
key={`${currentStep}-${w}`}
key={`${currentStep}-${i}-${w}`}
/>
))}
</Grid>
<Box align="end" pad={{ top: 'medium' }}>
<Box align="end" pad={{ vertical: 'medium' }}>
<Button
primary
style={{ borderRadius: '4px' }}
Expand Down

0 comments on commit d42b3fb

Please sign in to comment.