diff --git a/app/(main)/map/page.js b/app/(main)/map/page.js
index 96b428e..7835e76 100644
--- a/app/(main)/map/page.js
+++ b/app/(main)/map/page.js
@@ -337,6 +337,24 @@ export default function MapPage() {
// Get the first clue if it exists
const firstClue = clues.length > 0 ? clues[0] : null;
+ // Render a clue button only if the clue exists
+ const renderClueButton = (index, position) => {
+ if (index >= clues.length) return null; // Don't render if clue doesn't exist
+
+ const clue = clues[index];
+ return (
+
+ );
+ };
+
return (
{/* Map Banner with team info and timer */}
@@ -363,66 +381,17 @@ export default function MapPage() {
/>
- {/* Hardcoded Clue 1 button */}
- {firstClue && (
-
- )}
+ {/* Render clue buttons conditionally */}
+ {renderClueButton(0, { left: "230px", top: "212px" })}
+ {renderClueButton(1, { left: "320px", top: "285px" })}
+ {renderClueButton(2, { left: "265px", top: "400px" })}
+ {renderClueButton(3, { left: "343px", top: "520px" })}
+ {renderClueButton(4, { left: "320px", top: "646px" })}
+ {renderClueButton(5, { left: "298px", top: "774px" })}
+ {renderClueButton(6, { left: "240px", top: "880px" })}
+ {renderClueButton(7, { left: "355px", top: "960px" })}
- {clues.length > 1 && (
-
- )}
-
- {clues.length > 1 && (
-
- )}
-
- {/* clues should go above here */}
+ {/* Additional clue buttons can be added here when needed */}
diff --git a/lib/auth.js b/lib/auth.js
index 074b4ac..17f61ad 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -10,7 +10,7 @@ const JWT_SECRET =
export function createToken(payload) {
// Check if payload already has an expiration date set
const options = payload.exp ? {} : { expiresIn: "30d" };
-
+
return jwt.sign(payload, JWT_SECRET, options);
}