major: Migration from better-auth to keycloak
This commit is contained in:
@@ -3,7 +3,8 @@ import type { CreateCommentDto, CommentDto } from '~/.api-client'
|
||||
export function useCommentTextarea(applicationFormId: string) {
|
||||
const commentStore = useCommentStore()
|
||||
const { createComment, updateComment } = commentStore
|
||||
const { user } = useAuth()
|
||||
const userStore = useUserStore()
|
||||
const { user } = storeToRefs(userStore)
|
||||
const isEditingComment = ref(false)
|
||||
const currentEditedComment = ref<CommentDto | null>(null)
|
||||
const commentTextAreaValue = ref('')
|
||||
@@ -51,7 +52,7 @@ export function useCommentTextarea(applicationFormId: string) {
|
||||
}
|
||||
|
||||
function isCommentByUser(comment: CommentDto) {
|
||||
return comment.createdBy.id === user.value?.id
|
||||
return comment.createdBy.keycloakId === user.value?.keycloakId
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user