Skip to content

Commit

Permalink
fix: make sure the users credentials are used for the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Jun 6, 2021
1 parent 432e7b1 commit dbd5f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions domains/Auth/SignIn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const SignIn = ({ navigation }) => {
const load = false;

useEffect(() => {
getData('currentUser').then((values) => {
setUser(values);
if (values?.store === 'Yes') {
getData('currentUser').then((currentUser) => {
setUser(currentUser);
if (currentUser?.credentials?.store === 'Yes') {
setModalVisible(true);
}
});
Expand Down

0 comments on commit dbd5f8f

Please sign in to comment.