From 6f84bc4f52a0998a4d1051cb40dbb4f01f9e83be Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 1 Sep 2023 15:27:37 +0530 Subject: [PATCH] fix: delete vote fixes --- apps/space/store/issue_details.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/space/store/issue_details.ts b/apps/space/store/issue_details.ts index ba9554975..68f9af1ca 100644 --- a/apps/space/store/issue_details.ts +++ b/apps/space/store/issue_details.ts @@ -237,10 +237,10 @@ class IssueDetailStore implements IssueDetailStore { removeIssueVote = async (workspaceSlug: string, projectId: string, issueId: string) => { try { - const issueVoteResponse = await this.issueService.deleteIssueVote(workspaceSlug, projectId, issueId); + await this.issueService.deleteIssueVote(workspaceSlug, projectId, issueId); const issueDetails = await this.issueService.getIssueById(workspaceSlug, projectId, issueId); - if (issueVoteResponse) { + if (issueDetails) { runInAction(() => { this.details = { ...this.details,