diff --git a/domains/Auth/SignIn/index.js b/domains/Auth/SignIn/index.js index 9904b1555..ca96a3364 100644 --- a/domains/Auth/SignIn/index.js +++ b/domains/Auth/SignIn/index.js @@ -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); } });