prevent 'now ago' from appearing with capitalize

pull/1381/head
Audric Ackermann 5 years ago
parent 28bc3536bd
commit 81196b793e
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -68,7 +68,7 @@ export class Timestamp extends React.Component<Props> {
} else {
dateString = moment(timestamp).fromNow();
// Prevent times reading "NOW AGO"
if (dateString.startsWith('now')) {
if (dateString.startsWith('now') || dateString.startsWith('Now')) {
dateString = 'now';
}

Loading…
Cancel
Save