From 7748414c1b6698d43838eec7da21e476570afceb Mon Sep 17 00:00:00 2001 From: "Bartosz \" izdwuut" Date: Mon, 17 Feb 2020 13:08:07 +0100 Subject: [PATCH] Check if Steam profile is defined in thread.component.html. --- frontend/src/app/thread/thread.component.html | 6 +++--- frontend/src/app/thread/thread.component.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/thread/thread.component.html b/frontend/src/app/thread/thread.component.html index 3a1336e..2b47877 100644 --- a/frontend/src/app/thread/thread.component.html +++ b/frontend/src/app/thread/thread.component.html @@ -35,7 +35,7 @@

Scrapped comments

Comment karma: {{ comment.author.karma }}, age: {{ getAge(comment.author.age) }}
-
+
Steam profile: {{ getSteamProfile(comment) }}
@@ -59,7 +59,7 @@

Scrapped comments

Comment karma: {{ comment.author.karma }}, age: {{ getAge(comment.author.age) }}
-
+
Steam profile: {{ getSteamProfile(comment) }}
@@ -94,7 +94,7 @@

Scrapped comments

Comment karma: {{ comment.author.karma }}, age: {{ getAge(comment.author.age) }}

-
+
Steam profile: {{ getSteamProfile(comment) }}
diff --git a/frontend/src/app/thread/thread.component.ts b/frontend/src/app/thread/thread.component.ts index 2a61b79..f88c22d 100644 --- a/frontend/src/app/thread/thread.component.ts +++ b/frontend/src/app/thread/thread.component.ts @@ -36,6 +36,7 @@ export class ThreadComponent implements OnInit, OnDestroy { sessionStorage.setItem('thread', JSON.stringify(thread)) if (!this.comments) { this.commentsSubscription = this.rest.getCachedComments(thread).subscribe(results => { + console.log(results) this.comments = results sessionStorage.setItem('comments', JSON.stringify(results)) })