diff --git a/app/(main)/clue/[clueId]/page.js b/app/(main)/clue/[clueId]/page.js index 7ab21e8..fe37aef 100644 --- a/app/(main)/clue/[clueId]/page.js +++ b/app/(main)/clue/[clueId]/page.js @@ -359,6 +359,12 @@ export default function CluePage({ params }) { "✅ Clue verified! You can now proceed to the next clue." ); + // Make next clue available immediately + setNextClueAvailable(true); + + // Force a refresh of the clue data to update availability + setLastRefresh(0); + // Show success notification setShowSuccessNotification(true); @@ -395,8 +401,8 @@ export default function CluePage({ params }) { // Navigate to the next clue const handleNextClue = () => { if (nextClueId) { - // Check if next clue is available before navigating - if (nextClueAvailable || isAdmin) { + // Always allow navigation if current clue is found + if (clueFound || nextClueAvailable || isAdmin) { router.push(`/clue/${nextClueId}`); } else { // Show notification that the next clue is locked @@ -561,7 +567,12 @@ export default function CluePage({ params }) { {/* QR Scanner Section */}