Skip to content

Commit

Permalink
Funform release
Browse files Browse the repository at this point in the history
  • Loading branch information
chamhayden committed Sep 30, 2023
1 parent c0f44c3 commit eb1bd55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/page/Assessments/AssessmentsAssignments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const AssessmentsAssignments = ({ }) => {
return (
<SubNavWrapper baseUrl={'/assessments/assignments'} menu={menu}>
<>
<h2>{params.ass} has {['ass1'].includes(params.ass) ? '' : 'not '} been released!</h2>
{['ass1'].includes(params.ass) && (<Button variant="contained" size="large">
<h2>{params.ass} has {['ass1', 'ass2'].includes(params.ass) ? '' : 'not '} been released!</h2>
{['ass1', 'ass2'].includes(params.ass) && (<Button variant="contained" size="large">
<a style={{ color: '#fff' }} target="_blank" href={
params.ass === 'ass1' ? `/~cs6080/redirect/?path=COMP6080/${getters.term}/students/_/pictocode/` :
params.ass === 'ass2' ? `/~cs6080/redirect/?path=COMP6080/${getters.term}/students/_/funform/` :
Expand Down

0 comments on commit eb1bd55

Please sign in to comment.