@social-mail/social-mail-client 1.8.274 → 1.8.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31606,18 +31606,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
31606
31606
  sendEmail() {
31607
31607
  return __awaiter(this, void 0, void 0, function* () {
31608
31608
  var _a, _b, _c;
31609
- if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
31610
- if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
31611
- alert("Cannot send empty email");
31612
- return;
31613
- }
31614
- }
31615
31609
  const {
31616
31610
  html,
31617
31611
  text
31618
31612
  } = this.editor.htmlTextContent;
31619
31613
  this.draft.htmlBody = html;
31620
31614
  this.draft.textBody = text;
31615
+ if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
31616
+ if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
31617
+ throw new Error("Cannot send empty email");
31618
+ }
31619
+ }
31621
31620
  yield this.save();
31622
31621
  const {
31623
31622
  prevSave