fix: use notebook.dateCreated for date

This commit is contained in:
thecodrr
2020-02-22 14:38:52 +05:00
parent 83180fb9a5
commit 168e66563b

View File

@@ -79,7 +79,7 @@ const Notebook = ({ item, index, onClick, onTopicClick }) => {
}
info={
<Flex justifyContent="center" alignItems="center">
{new Date(notebook.id).toDateString().substring(4)}
{new Date(notebook.dateCreated).toDateString().substring(4)}
<Text as="span" mx={1}>
</Text>