Skip to content

Commit

Permalink
fix: firebase config error (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
120EE0692 authored Oct 20, 2022
1 parent fec84ef commit 8184b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/config/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 8184b28

Please sign in to comment.