From 0e418216ab52b994e71f3547b18b016f2057d327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malin=20Haugland=20H=C3=B8li?= <malin.holi@gmail.com> Date: Thu, 2 May 2024 13:02:08 +0200 Subject: [PATCH] refactor: :ambulance: Small fixes --- src/components/ModalComponent.vue | 2 +- src/types/challenge.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ModalComponent.vue b/src/components/ModalComponent.vue index 36b0ec9..3d264c7 100644 --- a/src/components/ModalComponent.vue +++ b/src/components/ModalComponent.vue @@ -5,7 +5,7 @@ > <div class="bg-white p-6 rounded-lg shadow-lg max-w-sm w-full text-center"> <h2 class="title font-bold mb-4">{{ title }}</h2> - <p class="message mb-4">{{ message }}</p> + <p class="message mb-4" v-html="message"></p> <slot name="input"></slot> diff --git a/src/types/challenge.ts b/src/types/challenge.ts index ef9acee..8b7b5ab 100644 --- a/src/types/challenge.ts +++ b/src/types/challenge.ts @@ -9,7 +9,7 @@ export interface Challenge { description: string due: string // Mapping ZonedDateTime to Date, optional since Temporal annotation not always implies required createdOn?: string // Mapping ZonedDateTime to Date - type: string // Not specified as @NotNull, so it's optional + type?: string // Not specified as @NotNull, so it's optional completion?: number // Assuming BigDecimal maps to number, optional due to @Transient completedOn?: string // Adding the new variable as optional } -- GitLab