Get rid of lint warnings

This commit is contained in:
2019-10-22 07:31:59 +00:00
parent 9e55f6e4ec
commit 4cf97304e4
6 changed files with 9 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import { HashLink } from 'react-router-hash-link';
import { Helmet } from 'react-helmet';
import moment from 'moment';
import localForage from 'localforage';
import { sourceLink, infoLine, ToggleDot } from './utils.js';
import { infoLine, ToggleDot } from './utils.js';
class Article extends React.Component {
constructor(props) {
@@ -51,7 +51,7 @@ class Article extends React.Component {
displayComment(story, c, level) {
return (
<div className={level ? 'comment lined' : 'comment'}>
<div className={level ? 'comment lined' : 'comment'} key={c.author+c.date}>
<div className='info'>
<p>
{c.author === story.author ? '[OP]' : ''} {c.author || '[Deleted]'}