Skip to content

Commit

Permalink
💡 Add comments to source code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaL001 committed Oct 30, 2022
1 parent 271e9cd commit fbf3da9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ export class CreateBotModalComponent implements OnInit {
add = () => this._addStory$.add(this.botForm.value.botName as string, this.botForm.value.botDesc as string || '').subscribe();

update() {
// Capture changes to bot name and bot description
this.story.name = this.editBotForm.value.botName;
this.story.description = this.editBotForm.value.botDesc;

// Update bot details
this._addStory$.update(this.story);
}
}

0 comments on commit fbf3da9

Please sign in to comment.