+
{submissions.length === 0 && (
No submissions yet.
)}
- {submissionsWithAvgScore.map((submission: SubmissionWithWinnerTag) => {
+ {submissions.map(submission => {
return
;
})}
diff --git a/packages/nextjs/scaffold.config.ts b/packages/nextjs/scaffold.config.ts
index ec8f25b..ffe76bf 100644
--- a/packages/nextjs/scaffold.config.ts
+++ b/packages/nextjs/scaffold.config.ts
@@ -7,8 +7,6 @@ export type ScaffoldConfig = {
walletConnectProjectId: string;
onlyLocalBurnerWallet: boolean;
votingEnabled: boolean;
- winnersThreshold: number;
- runnersUpThreshold: number;
};
const scaffoldConfig = {
@@ -36,10 +34,6 @@ const scaffoldConfig = {
// Enable voting on submissions
votingEnabled: false,
-
- // Score threshold for winners and runners up
- winnersThreshold: 7,
- runnersUpThreshold: 6,
} as const satisfies ScaffoldConfig;
export default scaffoldConfig;
diff --git a/packages/nextjs/services/database/repositories/submissions.ts b/packages/nextjs/services/database/repositories/submissions.ts
index 117fa26..145fd27 100644
--- a/packages/nextjs/services/database/repositories/submissions.ts
+++ b/packages/nextjs/services/database/repositories/submissions.ts
@@ -9,9 +9,6 @@ export type Submission = InferSelectModel
& { comments: Comm
export type SubmissionWithAvg = Submission & {
avgScore: number;
};
-export type SubmissionWithWinnerTag = Submission & {
- winnerTag: string | null;
-};
export async function getAllSubmissions() {
return await db.query.submissions.findMany({