Skip to content

Commit

Permalink
Merge pull request #141 from 33tm/sgy-modal
Browse files Browse the repository at this point in the history
Eternal "Fetching courses..." modal fix
  • Loading branch information
julia7hk authored Sep 29, 2023
2 parents 4f0aa03 + 146975f commit cf1feeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/firebase/SgyInitResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function SgyInitResults() {

// Set the results to the value returned by initialization to be displayed
useEffect(() => {
if (!auth.currentUser) return;
if (auth.currentUser && sgyModal) {
// console.log('hey!');
const init = httpsCallable(functions, "sgyfetch-init");
Expand All @@ -40,7 +41,7 @@ export default function SgyInitResults() {
});
}
// return (() => {console.log('I am unmounted!!!!!')});
}, [])
}, [auth.currentUser])

const closeDialog = () => {
setSgyModal(false);
Expand Down

0 comments on commit cf1feeb

Please sign in to comment.