diff --git a/src/App.js b/src/App.js index 89def29..8300c12 100644 --- a/src/App.js +++ b/src/App.js @@ -12,11 +12,6 @@ import { addDoc } from "firebase/firestore"; -if (!getApps().length) { - initializeApp(firebaseConfig); - } - - // Import required compenets from Bootstrap and React-Boostrap import Form from 'react-bootstrap/Form'; import Button from 'react-bootstrap/Button'; @@ -28,6 +23,13 @@ import './App.css' import { FSContext } from ".//contexts/FSContext.js" +if (!getApps().length) { + initializeApp(firebaseConfig); + } + + + + // declare variables