Commit b7edf66 1 parent 8f11f3d commit b7edf66 Copy full SHA for b7edf66
File tree 3 files changed +2
-9
lines changed
3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const MyTicketPage = () => {
64
64
}
65
65
} )
66
66
return ( ) => {
67
- unsubscribe ( ) // Unsubscribe from the event when the component unmounts
67
+ unsubscribe ( )
68
68
}
69
69
} , [ currentUser , router ] )
70
70
@@ -112,7 +112,7 @@ const MyTicketPage = () => {
112
112
? ref ( database , `tickets/${ currentUser . uid } /${ existingTicketKey } ` )
113
113
: push ( ticketRef )
114
114
115
- // promise to wait for the update operation to complete
115
+ // promise for the update
116
116
const updatePromise = update ( updateRef , {
117
117
...ticketInfo ,
118
118
bgcolor : ticketInfo . bgcolor || colors [ 0 ] ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { initializeApp } from 'firebase/app'
5
5
import { getAuth } from 'firebase/auth'
6
6
import { getDatabase } from 'firebase/database'
7
7
8
- //import firebaseConfig2 from '../../.env'
9
8
const firebaseConfig = {
10
9
apiKey : process . env . NEXT_PUBLIC_FIREBASE_API_KEY ,
11
10
authDomain : process . env . NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN ,
@@ -17,10 +16,6 @@ const firebaseConfig = {
17
16
measurementId : process . env . NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
18
17
}
19
18
20
- //console.log('Firebase Config:', firebaseConfig)
21
- // Initialize Firebase
22
19
const app = initializeApp ( firebaseConfig )
23
20
export const auth = getAuth ( app )
24
21
export const database = getDatabase ( app )
25
- //export const database = firebase.database();
26
- //export const googleAuthProvider = new firebase.auth.GoogleAuthProvider();
Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ export const signUpWithGitHub = async () => {
73
73
74
74
try {
75
75
await signInWithPopup ( auth , provider )
76
- // Handle the successful sign-up
77
76
//console.log('User signed up with GitHub:', result.user)
78
77
} catch ( error ) {
79
- // Handle errors
80
78
//console.error('Error signing up with GitHub:', error.message)
81
79
}
82
80
}
You can’t perform that action at this time.
0 commit comments