Unverified Commit 2a29d8a1 authored by Donald Haase's avatar Donald Haase Committed by GitHub
Browse files

Changes to make local

again short circuit references to firebase to allow local running
parent bbb40b8c
......@@ -16,9 +16,12 @@ const App = () => {
const [currentUser, setUser] = useState(null)
useEffect(() => {
firebase.auth.onAuthStateChanged((currentUser) => {
currentUser ? setUser(currentUser) : setUser(null)
})
if(!process.env.REACT_APP_API_KEY)
setUser(null)
else
firebase.auth.onAuthStateChanged((currentUser) => {
currentUser ? setUser(currentUser) : setUser(null)
})
}, [])
return (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment