Skip to content

Commit

Permalink
chore: run npm lint:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Sep 3, 2024
1 parent 087d99c commit 8409243
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/Properties/PropertyDateTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@ export default {
* If we force the removal of the year (vcard 4.0 only)
* year is still valid on the apple format x-apple-omit-year
*/
if (!this.value.year) {
dateObject.year = null
} else

// Apple style omit year parameter
// if year changed and we were already
// ignoring the year, we update the parameter
if (ignoreYear && dateObject.year) {
this.property.setParameter('x-apple-omit-year', parseInt(dateObject.year).toString())
}
if (!this.value.year) {
dateObject.year = null
} else

// Apple style omit year parameter
// if year changed and we were already
// ignoring the year, we update the parameter
if (ignoreYear && dateObject.year) {
this.property.setParameter('x-apple-omit-year', parseInt(dateObject.year).toString())
}

// reset the VCardTime component to the selected date/time
this.localValue = new ICAL.VCardTime(dateObject, null, this.propType)
Expand Down

0 comments on commit 8409243

Please sign in to comment.