Skip to content

Commit

Permalink
Merge pull request #401 from raschdiaz/sprint-24
Browse files Browse the repository at this point in the history
Resolves #390
  • Loading branch information
zdmc23 authored Aug 6, 2020
2 parents f4b8a1c + ae10052 commit 4f504c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion screens/Contact/ContactsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ class ContactsScreen extends React.Component {
search: '',
searchBarFilter: {
...prevState.searchBarFilter,
toggle: false,
currentFilter: '',
},
}),
Expand All @@ -274,10 +275,15 @@ class ContactsScreen extends React.Component {
);
} else {
this.setState(
() => ({
(prevState) => ({
offset: 0,
filtered: false,
search: '',
searchBarFilter: {
...prevState.searchBarFilter,
toggle: false,
currentFilter: '',
},
}),
() => {
this.props.getAllContacts(
Expand Down

0 comments on commit 4f504c7

Please sign in to comment.