diff --git a/client/src/config/firebase.js b/client/src/config/firebase.js index fc6814b0..1e3e917a 100644 --- a/client/src/config/firebase.js +++ b/client/src/config/firebase.js @@ -11,8 +11,8 @@ const firebaseConfig = { appId: process.env.NEXT_PUBLIC_APP_ID, measurementId: process.env.NEXT_PUBLIC_MEASUREMENT_ID, }; -const firebaseApp = !process.env.NEXT_PUBLIC_PROJECT_ID +const firebaseApp = process.env.NEXT_PUBLIC_PROJECT_ID ? initializeApp(firebaseConfig) : null; -export const auth = !firebaseApp ? getAuth(firebaseApp) : null; +export const auth = firebaseApp ? getAuth(firebaseApp) : null;