diff --git a/calendar/base/src/calEvent.js b/calendar/base/src/calEvent.js index f0f00c1d9ce8..6314c3a7114e 100644 --- a/calendar/base/src/calEvent.js +++ b/calendar/base/src/calEvent.js @@ -107,7 +107,7 @@ calEvent.prototype = { set icalComponent(event) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; - if (event.componentType != "VEVENT"); { + if (event.componentType != "VEVENT") { event = event.getFirstSubcomponent("VEVENT"); if (!event) diff --git a/calendar/base/src/calEvent.js.pre b/calendar/base/src/calEvent.js.pre index f4f9510e2ff7..f1e187dcff6e 100644 --- a/calendar/base/src/calEvent.js.pre +++ b/calendar/base/src/calEvent.js.pre @@ -152,7 +152,7 @@ calEvent.prototype = { set icalComponent(event) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; - if (event.componentType != "VEVENT"); { + if (event.componentType != "VEVENT") { event = event.getFirstSubcomponent("VEVENT"); if (!event) // throw Components.results.NS_ERROR_CALENDAR_WRONG_COMPONENT_TYPE;