Skip to content

Commit

Permalink
update description data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Aug 9, 2023
1 parent 03ccf6e commit ce29536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/courses/add-courses/courses-step.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</mat-chip-list>
</ng-container>
<button mat-raised-button color="accent" (click)="suggestImprovements()" i18n>Suggest Improvements</button>
<div>{{suggestion}}</div>
<br><div>{{suggestion}}</div>
</div>
<div planetStepListActions>
<a mat-raised-button color="primary" (click)="addExam()" i18n>{{activeStep?.exam ? 'Update' : 'Add' }} Test</a>
Expand Down
2 changes: 1 addition & 1 deletion src/app/courses/add-courses/courses-step.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class CoursesStepComponent implements OnDestroy {

suggestImprovements() {
const content = `Suggest improvements for course
${this.stepForm.get('stepTitle').value} - ${this.stepForm.get('description').value}`;
${this.stepForm.get('stepTitle').value} - ${this.stepForm.get('description').value.text}`;

this.chatService.getPrompt(content).subscribe(
(completion: any) => {
Expand Down

0 comments on commit ce29536

Please sign in to comment.