Skip to content

Commit

Permalink
Updated quality check
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-swapnildixit committed Jul 11, 2024
1 parent c8b6410 commit 2e45497
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export class QualityCheckComponent implements OnInit, AfterViewInit, OnDestroy {
subscriptions: Subscription[] = [];

labels = [
{actual: 'Duplicate Content', opposite: 'Original Content'},
{actual: 'Spelling Mistakes', opposite: 'Correct Spelling'},
{actual: 'Grammatical Errors', opposite: 'Proper Grammar'},
{actual: 'Original Content', opposite: 'Duplicate Content'},
{actual: 'Correct Spelling', opposite: 'Spelling Mistakes'},
{actual: 'No Grammatical Error', opposite: 'Grammatical Errors'},
{actual: 'Overall SEO Report', opposite: 'SEO Optimization'},
{actual: 'Accuracy', opposite: 'Inaccuracy'},
{actual: 'Depth and Completeness', opposite: 'Superficiality'},
Expand Down Expand Up @@ -85,7 +85,7 @@ export class QualityCheckComponent implements OnInit, AfterViewInit, OnDestroy {
next: response => {
if (this.draftPost && response.trim().toLowerCase().includes('yes')) {
this.reviewBlogContent(this.draftPost);
} else if (this.draftPost && response.trim().toLowerCase() === 'no') {
} else if (this.draftPost && response.trim().toLowerCase().includes('no')) {
this.errorMessage = `This is not a Valid Blog.<br><br>`;
this.isLoading = false;
} else {
Expand Down

0 comments on commit 2e45497

Please sign in to comment.