From 5cd05f1d6058770d6234c18e430939a26b172f4a Mon Sep 17 00:00:00 2001 From: dannc Date: Sat, 23 Mar 2019 10:39:25 +0700 Subject: [PATCH] Fix formatted date filter --- src/filters/formattedDate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters/formattedDate.js b/src/filters/formattedDate.js index 927e60d..c960519 100644 --- a/src/filters/formattedDate.js +++ b/src/filters/formattedDate.js @@ -10,8 +10,8 @@ export const buildDate = (value) => { } const formattedDate = (value) => { - const buildDate = buildDate(value); - return buildDate ? buildDate.toLocaleDateString() : null; + const date = buildDate(value); + return date ? date.toLocaleDateString() : null; }; export default formattedDate; \ No newline at end of file