This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 2b0c78b0 authored by Daniel Crazzolara's avatar Daniel Crazzolara
Browse files

TS linting changes

parent 3d1be9bb
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -170,7 +170,7 @@ export class ExerciseImportComponent implements OnInit {
*/
isDifficulty(difficulty: string) {
if (this.exerciseInfo!.difficulty !== undefined) {
return this.exerciseInfo!.difficulty!.toLowerCase() === difficulty.toLowerCase();
return this.exerciseInfo!.difficulty.toLowerCase() === difficulty.toLowerCase();
} else {
return false;
}
......
......@@ -8,7 +8,7 @@ export const EXERCISE_IMPORT_ROUTE: Routes = [
path: ':token',
component: ExerciseImportComponent,
data: {
// authorities: [Authority.USER],
authorities: [Authority.USER],
pageTitle: 'exercise.import.pageTitle',
},
canActivate: [UserRouteAccessService],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment