Skip to content

Commit fd3831d

Browse files
committed
💚 linter
1 parent a77fed9 commit fd3831d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

personalization-webcomponents/src/ChecklistDetail.ce.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,19 @@ const closedCheckList = computed(() => {
134134
}
135135
});
136136
137-
const deletionDate = computed(oldValue => {
138-
if(checklist && checklist.value && checklist.value.lastUpdate) {
139-
let date = new Date(checklist.value.lastUpdate);
137+
const deletionDate = computed(() => {
138+
if (checklist.value && checklist.value && checklist.value.lastUpdate) {
139+
const date = new Date(checklist.value.lastUpdate);
140140
date.setFullYear(date.getFullYear() + 1);
141-
return date.toLocaleString("de-DE", {year: 'numeric', month: 'numeric', day: 'numeric'});
141+
return date.toLocaleString("de-DE", {
142+
year: "numeric",
143+
month: "numeric",
144+
day: "numeric",
145+
});
142146
} else {
143147
return "nächsten Jahr";
144148
}
145-
})
149+
});
146150
147151
function onCheckedOpen(serviceID: string) {
148152
if (checklist.value) {

0 commit comments

Comments
 (0)