Skip to content

Commit

Permalink
Remove fake error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Jan 12, 2018
1 parent 4d91d34 commit 82cac60
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ class Empty extends PureComponent {
onPress: PropTypes.func,
}

handlePress = () => {
throw new Error('handlePress Error');
}

render() {
const { onPress } = this.props;

Expand All @@ -38,7 +34,7 @@ class Empty extends PureComponent {
<TouchableOpacity
activeOpacity={0.85}
style={s.empty__button}
onPress={this.handlePress}
onPress={onPress}
>
<Text style={s.empty__buttonText}>Let’s start</Text>
</TouchableOpacity>
Expand Down

0 comments on commit 82cac60

Please sign in to comment.