Skip to content

Commit b7edf66

Browse files
committed
fix: removed unnecessary comments
1 parent 8f11f3d commit b7edf66

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/app/myticket/page.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const MyTicketPage = () => {
6464
}
6565
})
6666
return () => {
67-
unsubscribe() // Unsubscribe from the event when the component unmounts
67+
unsubscribe()
6868
}
6969
}, [currentUser, router])
7070

@@ -112,7 +112,7 @@ const MyTicketPage = () => {
112112
? ref(database, `tickets/${currentUser.uid}/${existingTicketKey}`)
113113
: push(ticketRef)
114114

115-
// promise to wait for the update operation to complete
115+
// promise for the update
116116
const updatePromise = update(updateRef, {
117117
...ticketInfo,
118118
bgcolor: ticketInfo.bgcolor || colors[0],

src/firebase/firebase.js

-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { initializeApp } from 'firebase/app'
55
import { getAuth } from 'firebase/auth'
66
import { getDatabase } from 'firebase/database'
77

8-
//import firebaseConfig2 from '../../.env'
98
const firebaseConfig = {
109
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
1110
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
@@ -17,10 +16,6 @@ const firebaseConfig = {
1716
measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
1817
}
1918

20-
//console.log('Firebase Config:', firebaseConfig)
21-
// Initialize Firebase
2219
const app = initializeApp(firebaseConfig)
2320
export const auth = getAuth(app)
2421
export const database = getDatabase(app)
25-
//export const database = firebase.database();
26-
//export const googleAuthProvider = new firebase.auth.GoogleAuthProvider();

src/firebase/signupAuth.js

-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ export const signUpWithGitHub = async () => {
7373

7474
try {
7575
await signInWithPopup(auth, provider)
76-
// Handle the successful sign-up
7776
//console.log('User signed up with GitHub:', result.user)
7877
} catch (error) {
79-
// Handle errors
8078
//console.error('Error signing up with GitHub:', error.message)
8179
}
8280
}

0 commit comments

Comments
 (0)