commit b9bed89b4891aebc140c7beb3033330cf85ef623
parent 15fe4462d67f30804b5c7feae385330ce9643c6b
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 26 Mar 2018 19:05:25 +0200
Fix typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts
@@ -84,7 +84,7 @@ export class TweetListComponent implements OnInit {
.concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries). This probably means we can\'t reach our API Server :('}));
})
.subscribe(
- data => { this.data = this.sort(data.tweet); },
+ data => { this.data = this.sort(data.tweets); },
err => {
this.toastr.error(err['error'], 'Error connecting API', {
positionClass: 'toast-top-center',
@@ -108,7 +108,7 @@ export class TweetListComponent implements OnInit {
};
arr.sort(compare);
- return arr
+ return arr;
}
private chunk(arr: (TweetsEntity)[], size: number): (TweetsEntity)[][] {