Add check to prevent comments from being listed as undefined. Fixes #34
This commit is contained in:
parent
55901c33e5
commit
78eaf0efe6
|
@ -68,7 +68,7 @@ export const RawPostJsx = (props) => {
|
|||
const repliesCount = props.data.replies_count;
|
||||
|
||||
let commentsText;
|
||||
if (repliesCount == 0) {
|
||||
if (repliesCount == 0 || repliesCount == undefined) {
|
||||
commentsText = "View comments";
|
||||
} else {
|
||||
commentsText = "View "
|
||||
|
|
Loading…
Reference in New Issue