Skip to content

Commit

Permalink
Select the latest term by default on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed May 25, 2024
1 parent 9ecadce commit dd83ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/page/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const SignIn = (props) => {
if (loading) {
return <AppLoad />;
}

return (
<main className={classes.main}>
<CssBaseline />
Expand All @@ -134,7 +134,7 @@ const SignIn = (props) => {
<FormLabel sx={{ marginTop: '15px', marginBottom: '5px' }} id="demo-radio-buttons-group-label">term</FormLabel>
<RadioGroup
aria-labelledby="demo-radio-buttons-group-label"
defaultValue={getters.validTerms[0]}
defaultValue={getters.validTerms.length ? getters.validTerms[getters.validTerms.length - 1][0] : 'sample'}
name="radio-buttons-group"
>
{getters.validTerms.map((term, key) => (
Expand Down

0 comments on commit dd83ad5

Please sign in to comment.