Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/actions/quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function calculateIntegrityScore(violations: ViolationEvent[]): number {
return Math.max(0, 100 - penalty);
}


async function getQuizQuestionIds(quizId: string): Promise<string[]> {
const rows = await db
.select({ id: quizQuestions.id })
Expand Down Expand Up @@ -238,7 +237,8 @@ export async function initializeQuizCache(
const { getOrCreateQuizAnswersCache, clearVerifiedQuestions } =
await import('@/lib/quiz/quiz-answers-redis');

const { resolveRequestIdentifier } = await import('@/lib/quiz/resolve-identifier');
const { resolveRequestIdentifier } =
await import('@/lib/quiz/resolve-identifier');
const { headers } = await import('next/headers');
const headersList = await headers();
const identifier = resolveRequestIdentifier(headersList);
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/[locale]/achievements-demo/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function AchievementsDemoPage() {
uniqueQuizzes: 4,
totalPoints: 80,
topLeaderboard: false,
hasStarredRepo: true, // demo: show star_gazer as earned
hasStarredRepo: true, // demo: show star_gazer as earned
sponsorCount: 0,
hasNightOwl: false,
});
Expand Down
3 changes: 1 addition & 2 deletions frontend/app/[locale]/admin/quiz/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default async function AdminQuizEditPage({
: undefined;
const csrfTokenUpdate = issueCsrfToken('admin:quiz:update');


return (
<div className="mx-auto max-w-5xl px-6 py-8">
<div className="mb-6">
Expand Down Expand Up @@ -83,7 +82,7 @@ export default async function AdminQuizEditPage({
csrfToken={csrfTokenUpdate}
/>
</div>
<div className="mb-6">
<div className="mb-6">
<QuizMetadataEditor
quizId={quiz.id}
translations={quiz.translations}
Expand Down
Loading