diff --git a/src/app/components/fragments/content-text-creator/content-text-creator.component.ts b/src/app/components/fragments/content-text-creator/content-text-creator.component.ts index 3d3ee0cb4f9c7f4ab507364eb8eab72904eec784..f1bc273e47eb9f77ad25e81206015658aae530c5 100644 --- a/src/app/components/fragments/content-text-creator/content-text-creator.component.ts +++ b/src/app/components/fragments/content-text-creator/content-text-creator.component.ts @@ -43,17 +43,14 @@ export class ContentTextCreatorComponent implements OnInit { } submitContent(subject: string, body: string) { - this.contentService.addContent(new ContentText( - '1', '1', this.roomId, subject, body, 1 - )).subscribe(); + this.contentService.addContent(new ContentText( + '1', '1', this.roomId, subject, body, 1 + )).subscribe(); if (this.content.body.valueOf() === '' || this.content.body.valueOf() === '') { this.notificationService.show('No empty fields allowed. Please check subject and body.'); return; } this.notificationService.show('Content submitted.'); - this.contentService.addContent(new ContentText( - '1', '1', this.roomId, subject, body, 1 - )).subscribe(); this.resetAfterSubmit(); }