Update priority calculation to use helper function
cgen-68f658229c9f4c379b62026952867365
This commit is contained in:
parent
68fd30524d
commit
4d0a8b0328
1 changed files with 2 additions and 2 deletions
|
|
@ -427,13 +427,13 @@ export default function Dashboard() {
|
||||||
</div>
|
</div>
|
||||||
<Badge
|
<Badge
|
||||||
variant={
|
variant={
|
||||||
project.priority === "High"
|
getPriorityFromTech(project.technologies || []) === "High"
|
||||||
? "destructive"
|
? "destructive"
|
||||||
: "secondary"
|
: "secondary"
|
||||||
}
|
}
|
||||||
className="animate-pulse"
|
className="animate-pulse"
|
||||||
>
|
>
|
||||||
{project.priority}
|
{getPriorityFromTech(project.technologies || [])}
|
||||||
</Badge>
|
</Badge>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue