diff --git a/aio/content/examples/toh-pt6/src/app/hero.service.ts b/aio/content/examples/toh-pt6/src/app/hero.service.ts index 747ba05c80..740b822313 100644 --- a/aio/content/examples/toh-pt6/src/app/hero.service.ts +++ b/aio/content/examples/toh-pt6/src/app/hero.service.ts @@ -86,7 +86,9 @@ export class HeroService { return of([]); } return this.http.get(`${this.heroesUrl}/?name=${term}`).pipe( - tap(_ => this.log(`found heroes matching "${term}"`)), + tap(x => x.length ? + this.log(`found heroes matching "${term}"`) : + this.log(`no heroes matching "${term}"`)), catchError(this.handleError('searchHeroes', [])) ); }