fix comment style

This commit is contained in:
GotPPay
2018-08-29 09:59:55 +02:00
parent 684c06df55
commit b99a0cb856

View File

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