Skip to content

Commit

Permalink
increase suggested lock period array length (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShuk authored Aug 22, 2024
1 parent 23233f1 commit 9e7ce45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VoteStakeRegistry/components/Account/LockTokensModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ const LockTokensModal = ({
[...fixedlockupPeriods.filter((_, i) => i%2 === 0), lockupPeriods[lockupLen-1]]
.map((p) => p.display) :
[
...fixedlockupPeriods.slice(Math.floor(withinPeriod/2), Math.floor(withinPeriod/2)+5),
...fixedlockupPeriods.slice(Math.floor(withinPeriod/2), Math.floor(withinPeriod/2)+6),
lockupPeriods[lockupLen-1]
]
.map((p) => p.display)
Expand Down
2 changes: 1 addition & 1 deletion components/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ButtonGroup: FunctionComponent<ButtonGroupProps> = ({
key={`${v}${i}`}
onClick={() => onChange(v)}
style={{
width: `${100 / values.length}%`,
width: `${98 / values.length}%`,
}}
>
{names ? (unit ? names[i] + unit : names[i]) : unit ? v + unit : v}
Expand Down

0 comments on commit 9e7ce45

Please sign in to comment.