We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12124dd commit a8766ebCopy full SHA for a8766eb
1 file changed
client/app/components/vote/index.tsx
@@ -93,13 +93,15 @@ const Vote = ({ logout }: { logout: () => void }) => {
93
</div>
94
</AccordionTrigger>
95
<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
+ {nominations?.length > 0 && (
+ <div className="flex gap-2 text-xs">
+ {nominations?.map(({ positions }) => (
+ <div className="bg-accent text-accent-foreground py-1 px-2">
+ {positions?.title}
+ </div>
+ ))}
103
104
+ )}
105
{Object.entries(data)
106
.filter(
107
([key, value]) =>
0 commit comments