check comment owner by username
This commit is contained in:
@@ -69,8 +69,7 @@ export const addComment = (idOrder, newComment, existingComments) => {
|
||||
const newCommentObject = {
|
||||
comment : newComment,
|
||||
date : moment().format("Do MMM, YY"),
|
||||
username: 'username',
|
||||
isOwner: 1,
|
||||
username: localStorage.getItem('username') || '-',
|
||||
}
|
||||
const concatenatedComments = (existingComments) ? existingComments.concat(newCommentObject) : [newCommentObject];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user