Removed the syncing with firestore

This commit is contained in:
2026-06-19 13:53:36 +05:30
parent ee81ca9228
commit 9a575a126a
7 changed files with 60 additions and 6 deletions

View File

@@ -732,6 +732,15 @@ const App: React.FC = () => {
return;
}
// Validate registration deadline
if (targetEvent.registrationDeadline) {
const deadline = new Date(targetEvent.registrationDeadline);
if (new Date() > deadline) {
alert("Registration Blocked: The registration deadline for this event has passed.");
return;
}
}
// Try to fetch from Studentusers first, then externalusers
let student = null;
const { data: internalStudent } = await supabase.from('Studentusers').select('*').eq('id', user.id).single();