We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd5b64 commit 386d863Copy full SHA for 386d863
peerprep/app/questions/new/page.tsx
@@ -116,7 +116,11 @@ function NewQuestion({}: Props) {
116
disabled={loading}
117
label="Difficulty: "
118
group="difficulty"
119
- options={{ Easy: 1, Medium: 2, Hard: 3 }}
+ options={{
120
+ Easy: Difficulty.Easy,
121
+ Medium: Difficulty.Medium,
122
+ Hard: Difficulty.Hard,
123
+ }}
124
onChange={handleFormTextInput}
125
/>
126
<FormTextAreaInput
peerprep/components/shared/form/RadioButtonGroup.tsx
@@ -5,7 +5,7 @@ interface Props {
5
label: string;
6
group: string;
7
options: {
8
- [label: string]: number;
+ [label: string]: string;
9
};
10
required?: boolean;
11
disabled?: boolean;
0 commit comments