Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ghackenberg committed May 20, 2024
1 parent 9c7bfdb commit 162f3d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const CommentView = (props: { productId: string, issueId: string, comment

const parts = (mode == Mode.VIEW && partsView) || (mode == Mode.PREVIEW && partsEdit) || []

const disabled = !members || !userId || (!contextUser.admin && members.filter(member => member.userId == userId).length == 0)
const disabled = !members || !userId || !contextUser || (!contextUser.admin && members.filter(member => member.userId == userId).length == 0)
const placeholder = 'Enter your comment here.'

// RETURN
Expand Down

0 comments on commit 162f3d1

Please sign in to comment.