Skip to content

Commit

Permalink
fix callback type
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed Oct 12, 2021
1 parent 4c2df97 commit 7170874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/WalletInit/CreateWallet/MnemonicCheckScreen.js
Expand Up @@ -105,7 +105,7 @@ export default MnemonicCheckScreen
type MnemonicInputProps = {
userEntries: Array<Entry>,
error: boolean,
onPress: (Entry) => any,
onPress: () => any,
}
const MnemonicInput = ({userEntries, error, onPress}: MnemonicInputProps) => {
return (
Expand All @@ -116,7 +116,7 @@ const MnemonicInput = ({userEntries, error, onPress}: MnemonicInputProps) => {

return (
<View key={entry.id} style={[styles.wordBadgeContainer, !isLast && styles.selected]}>
<WordBadge word={`${entry.word} x`} disabled={!isLast} onPress={() => onPress(entry)} />
<WordBadge word={`${entry.word} x`} disabled={!isLast} onPress={onPress} />
</View>
)
})}
Expand Down

0 comments on commit 7170874

Please sign in to comment.