Skip to content

Commit

Permalink
Update TopVoters component to fix voter index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed May 6, 2024
1 parent 9fff17e commit 0df15ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/(bots)/bots/[id]/components/Tabs/TopVoters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function TopVoters({ bot }) {
className='rounded-full'
/>

{[0, 1, 2].includes(bot.voters.indexOf(voter)) && (
{[0, 1, 2].includes(voters.indexOf(voter)) && (
<div className={cn(
'absolute top-0 left-0 w-full h-full rounded-full',
page === 1 && 'border-2',
Expand Down

0 comments on commit 0df15ab

Please sign in to comment.