summaryrefslogtreecommitdiffstats
path: root/ui/src/components/main.tsx
diff options
context:
space:
mode:
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;