Add check to prevent comments from being listed as undefined. Fixes #34

This commit is contained in:
Nat 2022-03-29 21:03:32 -07:00
parent 55901c33e5
commit 78eaf0efe6
1 changed files with 1 additions and 1 deletions

View File

@ -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 "