@social-mail/social-mail-client 1.8.297 → 1.8.298

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.
@@ -35862,15 +35862,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
35862
35862
  }
35863
35863
  sendEmail() {
35864
35864
  return __awaiter(this, void 0, void 0, function* () {
35865
- var _a, _b, _c;
35865
+ var _a, _b;
35866
35866
  const {
35867
35867
  html,
35868
35868
  text
35869
35869
  } = this.editor.htmlTextContent;
35870
35870
  this.draft.htmlBody = html;
35871
35871
  this.draft.textBody = text;
35872
- if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
35873
- if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
35872
+ if (!(text === null || text === void 0 ? void 0 : text.trim())) {
35873
+ if (!((_b = (_a = this.draft) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.length)) {
35874
35874
  throw new Error("Cannot send empty email");
35875
35875
  }
35876
35876
  }