check comment owner by username

This commit is contained in:
GotPPay
2018-08-16 10:35:55 +02:00
parent fed5ecafc4
commit b18a87790a

View File

@@ -25,12 +25,12 @@ class OrderComments extends Component {
this.setState({newComment});
}
getOffset(isOwner){
return isOwner ? 6 : 0;
getOffset(username){
return (username === localStorage.getItem('username')) ? 6 : 0;
}
getClassByOwner(isOwner){
return isOwner ? 'mine' : '';
getClassByOwner(username){
return (username === localStorage.getItem('username')) ? 'mine' : '';
}
render() {