diff --git a/frontend/src/components/forms/Editor.vue b/frontend/src/components/forms/Editor.vue
index 62893032..b68a9585 100644
--- a/frontend/src/components/forms/Editor.vue
+++ b/frontend/src/components/forms/Editor.vue
@@ -1,6 +1,5 @@
diff --git a/frontend/src/components/projects/ProjectCard.vue b/frontend/src/components/projects/ProjectCard.vue
index 9aa28f84..0fbfb5ad 100644
--- a/frontend/src/components/projects/ProjectCard.vue
+++ b/frontend/src/components/projects/ProjectCard.vue
@@ -52,7 +52,7 @@ const { t } = useI18n();
>
-
+
{{ project.name }}
@@ -96,7 +96,15 @@ const { t } = useI18n();
{{ t('views.projects.submissionStatus') }}: ok
-
+
+ {{
+ t(
+ 'views.projects.days',
+ { hour: moment(project.deadline).format('H:m') },
+ moment(project.deadline).diff(moment(), 'day'),
+ )
+ }}
+
(() => {
-
+
{
it('create a course instance from JSON data', () => {
const courseJSON = { ...courseData };
- const course = Course.fromJSON(courseJSON as any);
+ const course = Course.fromJSON(courseJSON);
expect(course).toBeInstanceOf(Course);
expect(course.id).toBe(courseData.id);
diff --git a/frontend/src/types/Course.ts b/frontend/src/types/Course.ts
index 950627b4..d0a807ae 100644
--- a/frontend/src/types/Course.ts
+++ b/frontend/src/types/Course.ts
@@ -41,7 +41,7 @@ export class Course {
*
* @param course
*/
- static fromJSON(course: Course|any): Course {
+ static fromJSON(course: Course): Course {
const faculty =
course.faculty !== undefined && course.faculty !== null ? Faculty.fromJSON(course.faculty) : null;
diff --git a/frontend/src/types/Project.ts b/frontend/src/types/Project.ts
index b3b12577..02f1c968 100644
--- a/frontend/src/types/Project.ts
+++ b/frontend/src/types/Project.ts
@@ -42,7 +42,7 @@ export class Project {
*
* @param project
*/
- static fromJSON(project: Project|any): Project {
+ static fromJSON(project: Project): Project {
let course = null;
if (project.course !== null && project.course !== undefined) {