Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components / post / post.component.ts
diff options
context:
space:
mode:
Commitfe4c9eaeac345c63e0c08c43b9dc3185d07716e8 (patch)
Author
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-11 21:09:47 +0200
Committer
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-11 21:09:47 +0200
Filesf0b884e19a5a44357197ed6951e7d2ef3d5f01d7 /src/app/components/post/post.component.ts
DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.tar
DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.tar.gz
DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.zip
Parent1f008dfc777022582e5e0cf0823175e66c2790cf (diff)
Post rating shows current rating(not static number)
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/app/components/post/post.component.ts2
diff --git a/src/app/components/post/post.component.ts b/src/app/components/post/post.component.ts
index 39391ad..f813d8c 100644
--- a/src/app/components/post/post.component.ts
+++ b/src/app/components/post/post.component.ts
@@ -31,7 +31,7 @@ export class PostComponent implements OnInit {
(result: object) => {
Object.assign(this.post, result);
this.post.fileURLs = Object.values(result)[7];
- this.votesNumber = 23;
+ this.votesNumber = this.post.currentRating;
this.timeCreated = new Date(this.post.timeCreated).toLocaleString('en-GB');
this.loadUser();