Skip to content

Commit

Permalink
fix(website): don't add 1 to indexes in substitution badges (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored May 10, 2024
1 parent 10fd46a commit 17067f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SubBadge: FC<SubProps> = ({ position, mutationTo, mutationFrom, seq
</span>
</>
)}
<span className='px-[4px] py-[2px] bg-gray-200'>{position + 1}</span>
<span className='px-[4px] py-[2px] bg-gray-200'>{position}</span>
<span className='px-[4px] py-[2px] rounded-e-[3px]' style={{ background: getColor(mutationTo) }}>
{mutationTo}
</span>
Expand Down

0 comments on commit 17067f3

Please sign in to comment.