fix getting admin status from store

This commit is contained in:
igoradamenko
2018-02-24 21:50:14 +02:00
parent 3b0ec756e5
commit b27000f29f
+1 -1
View File
@@ -140,7 +140,7 @@ export default class Comment extends Component {
render(props, { userBlocked, pinned, score, scoreIncreased, scoreDecreased, isInputVisible }) {
const { data, mix, mods = {} } = props;
const isAdmin = !store.get('user').admin;
const isAdmin = store.get('user').admin;
const time = new Date(data.time);
// TODO: which format for datetime should we choose?