Commit 32f0999b authored by Paul Kaplan's avatar Paul Kaplan

Use #comments-id instead of #comment-id for fetching single comments

parent d9fa1031
......@@ -117,7 +117,7 @@ class Comment extends React.Component {
className={classNames('flex-row', 'comment', {
'highlighted-comment': highlighted
})}
id={`comment-${id}`}
id={`comments-${id}`}
ref={this.setRef}
>
<a href={`/users/${author.username}`}>
......
......@@ -66,8 +66,8 @@ class Preview extends React.Component {
// parts[1]: either :id or 'editor'
// parts[2]: undefined if no :id, otherwise either 'editor' or 'fullscreen'
// Get single-comment id from url hash, using the #comment-{id} scheme from scratch2
const commentHashPrefix = '#comment-';
// Get single-comment id from url hash, using the #comments-{id} scheme from scratch2
const commentHashPrefix = '#comments-';
const singleCommentId = window.location.hash.indexOf(commentHashPrefix) !== -1 &&
parseInt(window.location.hash.replace(commentHashPrefix, ''), 10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment