mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-26 15:14:22 +02:00
Fixed lint warning
This commit is contained in:
parent
fd658689e3
commit
e7bc1457d7
@ -90,7 +90,8 @@ export default {
|
|||||||
const formatType = (ht) => capitalize(ht.replaceAll('_', ' '));
|
const formatType = (ht) => capitalize(ht.replaceAll('_', ' '));
|
||||||
holidays.forEach((holiday) => {
|
holidays.forEach((holiday) => {
|
||||||
results.push({
|
results.push({
|
||||||
name: holiday.name.filter(p => p.lang == this.options.lang)[0].text || holiday.name[0].text,
|
name: holiday.name
|
||||||
|
.filter(p => p.lang === this.options.lang)[0].text || holiday.name[0].text,
|
||||||
date: makeDate(holiday.date),
|
date: makeDate(holiday.date),
|
||||||
type: formatType(holiday.holidayType),
|
type: formatType(holiday.holidayType),
|
||||||
observed: holiday.observedOn ? makeDate(holiday.observedOn) : '',
|
observed: holiday.observedOn ? makeDate(holiday.observedOn) : '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user