Skip to content

Commit

Permalink
Merge pull request #1113 from adamkendis/FRONT-type-selector-refactor
Browse files Browse the repository at this point in the history
RequestTypeSelector fix
  • Loading branch information
adamkendis authored Jun 18, 2021
2 parents f574dc1 + 753d54c commit b33a8f2
Show file tree
Hide file tree
Showing 6 changed files with 353 additions and 186 deletions.
4 changes: 2 additions & 2 deletions client/components/main/Desktop/TypeSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const RequestTypeSelector = ({
useEffect(() => {
if (requestTypes) {
const mid = Math.ceil(requestTypes.length / 2);
const left = requestTypes.splice(0, mid);
const right = requestTypes.splice(-mid);
const left = requestTypes.slice(0, mid);
const right = requestTypes.slice(-mid);
setLeftCol(left);
setRightCol(right);
}
Expand Down
Loading

0 comments on commit b33a8f2

Please sign in to comment.