diff --git a/rpdata/api/Comment.js b/rpdata/api/Comment.js index af20b18..bb02c2c 100644 --- a/rpdata/api/Comment.js +++ b/rpdata/api/Comment.js @@ -18,7 +18,7 @@ class Comment { this.author = author this.characterName = characterName this.character = character != null ? CommentCharacter.fromData(character) : null - this.fictionalDate = new Date(fictionalDate) + this.fictionalDate = fictionalDate != null ? new Date(fictionalDate) : null this.createdDate = new Date(createdDate) this.editedDate = new Date(editedDate) this.source = source