We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d63c4 commit 8a88e6fCopy full SHA for 8a88e6f
src/components/habit/view.tsx
@@ -36,10 +36,12 @@ export const HabitView: React.FC = () => {
36
<ButtonForm />
37
</div>
38
39
- <div className="flex flex-col gap-2">
40
- <Label className="text-muted-foreground/50">Description</Label>
41
- <HabitDescription />
42
- </div>
+ {habit.description && (
+ <div className="flex flex-col gap-2">
+ <Label className="text-muted-foreground/50">Description</Label>
+ <HabitDescription />
43
+ </div>
44
+ )}
45
46
<div className="flex flex-col gap-2">
47
<Label className="text-muted-foreground/50">Progress</Label>
0 commit comments