Skip to content

Commit db12f27

Browse files
committed
fix(comments): explicitly return limbo status of comment
Otherwise, the `checkForId` function returns `undefined` regardless of whether the comment is in limbo or not. Signed-off-by: Edward Ly <contact@edward.ly>
1 parent 085edbf commit db12f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/comments/src/store/deletedCommentLimbo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useDeletedCommentLimbo = defineStore('deletedCommentLimbo', {
2222
},
2323

2424
checkForId(id) {
25-
this.idsInLimbo.includes(id)
25+
return this.idsInLimbo.includes(id)
2626
},
2727
},
2828
})

0 commit comments

Comments
 (0)