Skip to content

Commit

Permalink
Revert "Temporarily show exercises without need to log in"
Browse files Browse the repository at this point in the history
This reverts commit 925ff40.
  • Loading branch information
nygrenh committed Jan 9, 2019
1 parent 77efbd2 commit 714adbf
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/partials/ProgrammingExercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,7 @@ class ProgrammingExercise extends React.Component {
?.available_model_solution_tokens
const modelSolutionTokenUsedOnThisExercise = this.state?.exerciseDetails
?.model_solution_token_used_on_this_exercise
if (true) {
return (
<ProgrammingExerciseWrapper>
<Header>
<StyledIcon icon={icon} size="1x" />
<HeaderMuted>Tehtävä: </HeaderMuted>
{name}
</Header>
<Body>
<div>{children}</div>
</Body>
</ProgrammingExerciseWrapper>
)
}

if (!this.state.render) {
return <div>Loading</div>
}
Expand Down

0 comments on commit 714adbf

Please sign in to comment.