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 be5bba8 commit 94ddfedCopy full SHA for 94ddfed
apps/question-service/src/app/page.tsx
@@ -192,14 +192,18 @@ export default function Home() {
192
key: "complexity",
193
render: (difficulty: string) => {
194
let color = "";
195
- if (difficulty === "Easy") {
+ if (difficulty === "easy") {
196
color = "#2DB55D";
197
- } else if (difficulty === "Medium") {
+ } else if (difficulty === "medium") {
198
color = "orange";
199
- } else if (difficulty === "Hard") {
+ } else if (difficulty === "hard") {
200
color = "red";
201
}
202
- return <div style={{ color }}>{difficulty}</div>;
+ return (
203
+ <div style={{ color }}>
204
+ {difficulty.charAt(0).toUpperCase() + difficulty.slice(1)}
205
+ </div>
206
+ );
207
},
208
209
{
0 commit comments