summaryrefslogtreecommitdiffstats
path: root/ui/src/components/main.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-02 12:45:41 -0500
committerDessalines <tyhou13@gmx.com>2020-02-02 12:45:41 -0500
commit96a7e99e57f8c79eead599e6de5d94016f7021e6 (patch)
tree3447364e73f461660c0db87cd2f45ddea16a50ee /ui/src/components/main.tsx
parentcda1e6e74141efea556e81082a3468a012d2926d (diff)
Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends.
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r--ui/src/components/main.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx
index 9ff6af44..ec801f90 100644
--- a/ui/src/components/main.tsx
+++ b/ui/src/components/main.tsx
@@ -14,7 +14,6 @@ import {
ListingType,
SiteResponse,
GetPostsResponse,
- CreatePostLikeResponse,
PostResponse,
Post,
GetPostsForm,
@@ -622,7 +621,7 @@ export class Main extends Component<any, MainState> {
this.setState(this.state);
} else if (res.op == UserOperation.CreatePostLike) {
- let data = res.data as CreatePostLikeResponse;
+ let data = res.data as PostResponse;
let found = this.state.posts.find(c => c.id == data.post.id);
found.score = data.post.score;