diff --git a/src/app/api/judging/route.js b/src/app/api/judging/route.js
index fd361d49b..8ae1aa549 100644
--- a/src/app/api/judging/route.js
+++ b/src/app/api/judging/route.js
@@ -28,7 +28,7 @@ export async function GET() {
try {
const teamsSnapshot = await getDocs(
- query(collection(db, "teams"), where("status", "==", "qualify"))
+ query(collection(db, "teams"), where("status", "==", 1))
);
teamsSnapshot.forEach((doc) => {
const { links, name, rounds, table } = doc.data();
@@ -50,11 +50,7 @@ export async function GET() {
});
const judgesSnapshot = await getDocs(
- query(
- collection(db, "users"),
- where("role", "array-contains", "judges"),
- where("status", "==", "accept")
- )
+ query(collection(db, "users"), where("roles.judges", "==", 1))
);
judgesSnapshot.forEach((doc) => {
const { affiliation, name } = doc.data();
diff --git a/src/components/dynamic/ProtectedPage.jsx b/src/components/dynamic/ProtectedPage.jsx
index d2490e4bc..8f2146be2 100644
--- a/src/components/dynamic/ProtectedPage.jsx
+++ b/src/components/dynamic/ProtectedPage.jsx
@@ -18,6 +18,10 @@ const ProtectedPage = ({ children }) => {
const bypass = ROUTES[pathName].bypass;
useEffect(() => {
+ if (bypass) {
+ setConfirmed(true);
+ return;
+ }
if (RELEASES.DYNAMIC[pathName] > new Date()) {
setError({
code: 423,
@@ -65,7 +69,7 @@ const ProtectedPage = ({ children }) => {
{error && (