Skip to content

Commit

Permalink
timline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mond1c committed Sep 18, 2024
1 parent 54700d4 commit dc21b0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const TimeLine = ({ teamId, className = null }) => {
<TimeLineContainer className={className} color={teamData?.color ? teamData?.color : c.CONTEST_COLOR}>
<Line lineWidth={lineWidth} left={c.TIMELINE_LEFT_TIME_PADDING} />
<CircleAtEnd lineWidth={lineWidth + c.TIMELINE_LEFT_TIME_PADDING} />
{Array.from(Array((contestInfo?.contestLengthMs ?? 0) / 3600000 + 1).keys()).map(elem => {
{Array.from(Array((Math.floor((contestInfo?.contestLengthMs ?? 0) / 3600000) + 1)).keys()).map(elem => {
return (<TimeBorder key={elem}
color={teamData?.color ?? "#000"}
left={(((elem) * 3600000 / contestInfo?.contestLengthMs * 100) * c.TIMELINE_REAL_WIDTH + (elem === 0 ? c.TIMELINE_LEFT_TIME_PADDING : 0)) + "%"} />); })}
Expand Down

0 comments on commit dc21b0f

Please sign in to comment.