publish: fixes single revision plurality

fixes https://github.com/urbit/urbit/issues/3841
This commit is contained in:
Tyler Brown Cifu Shuster 2020-11-02 08:52:33 -08:00
parent e279b08049
commit 6f6c129d45

View File

@ -83,7 +83,7 @@ export function NotePreview(props: NotePreviewProps) {
{date}
</Box>
<Box mr={3}>{commentDesc}</Box>
<Box>{rev === 1 ? `1 Revision` : `${rev} Revisions`}</Box>
<Box>{rev.valueOf() === 1 ? `1 Revision` : `${rev} Revisions`}</Box>
</Box>
</Col>
</Link>