Skip to content

Commit

Permalink
Bug fix: conference picker
Browse files Browse the repository at this point in the history
  • Loading branch information
esmalleydev committed Apr 17, 2024
1 parent 595da21 commit e0ea988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/cbb/ranking/ranking-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ import { setOrder, setOrderBy, setTableScrollTop } from '@/redux/features/rankin
// TODO Filter out people who play under x minutes?
// TODO ADD A POWER 5 CONF quick button TO THIS

// todo store horizontal scroll position


const StyledTableRow = styled(TableRow)(({ theme }) => ({
// '&:nth-of-type(odd)': {
Expand Down Expand Up @@ -204,21 +206,21 @@ const Ranking = (props) => {
}

const handleTeam = (team_id) => {
setSpin(true);
if (tableRef && tableRef.current) {
dispatch(setTableScrollTop(tableRef.current.scrollTop));
}
setSpin(true);
startTransition(() => {
router.push('/cbb/team/' + team_id+'?season='+season);
setSpin(false);
});
}

const handlePlayer = (player_id) => {
setSpin(true);
if (tableRef && tableRef.current) {
dispatch(setTableScrollTop(tableRef.current.scrollTop));
}
setSpin(true);
startTransition(() => {
router.push('/cbb/player/' + player_id+'?season='+season);
setSpin(false);
Expand Down
2 changes: 1 addition & 1 deletion components/generic/CBB/ConferencePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ConferencePicker = () => {
{'value': 'MVC', 'label': 'MVC'},
{'value': 'WCC', 'label': 'WCC'},
{'value': 'Big West', 'label': 'Big West'},
{'value': 'C-USA', 'label': 'C-USA'},
{'value': 'CUSA', 'label': 'C-USA'},
{'value': 'Ivy League', 'label': 'Ivy League'},
{'value': 'Summit League', 'label': 'Summit League'},
{'value': 'Horizon', 'label': 'Horizon'},
Expand Down

0 comments on commit e0ea988

Please sign in to comment.