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

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

TS linting changes

parent d06ef0db
Branches
Tags
2 merge requests!62created achievementService and separated some functionality out of...,!61Feature/#51 import from artemis
......@@ -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