From c74ff4de90dcad33cc77f47ca1d3ce465ce1d2d1 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sun, 2 Feb 2020 19:37:24 +0500 Subject: [PATCH] add date on editor --- apps/mobile/src/views/Editor/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js index 2e581688e..bb07e169d 100755 --- a/apps/mobile/src/views/Editor/index.js +++ b/apps/mobile/src/views/Editor/index.js @@ -295,6 +295,7 @@ const Editor = ({navigation, noMenu}) => { }`; const timeConverter = timestamp => { + if (!timestamp) return; var d = new Date(timestamp), // Convert the passed timestamp to milliseconds yyyy = d.getFullYear(), mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0.