Skip to content
Snippets Groups Projects
Commit 1b480255 authored by Sebastian Wittek's avatar Sebastian Wittek
Browse files

fixup function checkInputData

parent ad340e2c
No related merge requests found
......@@ -40,7 +40,7 @@ export class CommentCreatePageComponent implements OnInit {
this.roomId = localStorage.getItem(`roomId`);
}
pressSend(subject: string, body: string): void{
pressSend(subject: string, body: string): void {
if (this.checkInputData(subject, body)) {
this.openSubmitDialog(subject, body);
}
......@@ -86,6 +86,7 @@ export class CommentCreatePageComponent implements OnInit {
});
return false;
}
return true;
}
send(subject: string, body: string): void {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment