photo ui update

This commit is contained in:
2026-04-21 11:22:14 +05:30
parent 8f6c705677
commit 4500fde334
4 changed files with 82 additions and 57 deletions

View File

@@ -164,7 +164,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
// Try to get existing user
try {
console.log('[Auth] Fetching user by email:', email)
// console.log('[Auth] Fetching user by email:', email)
const existingUser = await getUserByEmail(email, token) as MongoUser
setUserId(existingUser.id)
setMongoUser(existingUser)
@@ -179,7 +179,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
},
token
) as MongoUser
console.log('[Auth] Registered new user:', newUser.id)
// console.log('[Auth] Registered new user:', newUser.id)
setUserId(newUser.id)
setMongoUser(newUser)
syncReminderFromDb(newUser)