Skip to content

Commit

Permalink
test: fix Date Picker screen state update.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Jan 1, 2025
1 parent 40dde14 commit e09f58a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions detox/test/src/Screens/DatePickerScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ export default class DatePickerScreen extends Component {
}

setDate = (e, newDate) => {
this.setState({
chosenDate: newDate,
datePickerVisible: !shouldHideDatePicker,
});
this.setState({ chosenDate: newDate });
};

getTimeLocal() {
Expand Down

0 comments on commit e09f58a

Please sign in to comment.