diff --git a/src/screens/TabScreen.js b/src/screens/TabScreen.js index 55184e2..29af12e 100644 --- a/src/screens/TabScreen.js +++ b/src/screens/TabScreen.js @@ -16,6 +16,8 @@ const Tab = createBottomTabNavigator(); const TabScreen = ({ navigation }) => { const [contentUpdated, setContentUpdated] = useState(false); + const [loggedin, setLoggedin] = useState(false); + const jsCode = ` if (document.getElementById('yorke_user_login')) { document.getElementById('yorke_user_login').value='${FASEL_EMAIL}'; @@ -53,19 +55,12 @@ const TabScreen = ({ navigation }) => { // pass } - if (!Storage.contains("loggedin")) { - Storage.set("loggedin", false); - } else { - // pass - } - if (!Storage.contains("resume")) { Storage.set("resume", JSON.stringify({})); } else { // pass } - const [loggedin, setLoggedin] = useState(Storage.getBoolean("loggedin")); const contentAutoupdate = Storage.getBoolean("contentAutoupdate"); const updateContent = () => { @@ -119,7 +114,6 @@ const TabScreen = ({ navigation }) => { const handleNavigationChange = (webViewState) => { if (webViewState.url.includes("home3")) { setLoggedin(true); - Storage.set("loggedin", true); } else { // pass }