|
|
@ -28,11 +28,19 @@ module.exports = class { |
|
|
|
}) |
|
|
|
|
|
|
|
const comment = input.comment |
|
|
|
|
|
|
|
let fictionalDate = new Date(comment.fictionalDate) |
|
|
|
if (comment.fictionalDate && !Number.isNaN(fictionalDate.getTime()) && fictionalDate.getTime() !== 0) { |
|
|
|
fictionalDate = moment(fictionalDate).format("MMM D, YYYY") |
|
|
|
} else { |
|
|
|
fictionalDate = "" |
|
|
|
} |
|
|
|
|
|
|
|
this.state.values = { |
|
|
|
subject: comment.subject, |
|
|
|
characterId: comment.characterId, |
|
|
|
characterName: comment.characterName, |
|
|
|
fictionalDate: moment(comment.fictionalDate).format("MMM D, YYYY"), |
|
|
|
fictionalDate: fictionalDate, |
|
|
|
source: comment.source, |
|
|
|
} |
|
|
|
} |
|
|
|