Skip to content

Commit 437e396

Browse files
committed
fix: TypeScript difficulty type error in SolverWidget
1 parent 2ec12a7 commit 437e396

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dashboard/src/components/dashboard/SolverWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function SolverWidget({ onSolved }: SolverWidgetProps) {
122122
id: title.toLowerCase().replace(/\s+/g, '-'),
123123
title,
124124
slug: title.toLowerCase().replace(/\s+/g, '-'),
125-
difficulty: 'Medium',
125+
difficulty: 'Medium' as const,
126126
url: '',
127127
description: problem,
128128
constraints: [],
@@ -343,4 +343,4 @@ export function SolverWidget({ onSolved }: SolverWidgetProps) {
343343
</div>
344344
</div>
345345
);
346-
}
346+
}

0 commit comments

Comments
 (0)