Skip to content

Commit a8766eb

Browse files
committed
fix
1 parent 12124dd commit a8766eb

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

client/app/components/vote/index.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ const Vote = ({ logout }: { logout: () => void }) => {
9393
</div>
9494
</AccordionTrigger>
9595
<AccordionContent className="gap-4 flex flex-col">
96-
<div className="flex gap-2 text-xs">
97-
{nominations?.map(({ positions }) => (
98-
<div className="bg-accent text-accent-foreground py-1 px-2">
99-
{positions?.title}
100-
</div>
101-
))}
102-
</div>
96+
{nominations?.length > 0 && (
97+
<div className="flex gap-2 text-xs">
98+
{nominations?.map(({ positions }) => (
99+
<div className="bg-accent text-accent-foreground py-1 px-2">
100+
{positions?.title}
101+
</div>
102+
))}
103+
</div>
104+
)}
103105
{Object.entries(data)
104106
.filter(
105107
([key, value]) =>

0 commit comments

Comments
 (0)