From a1a2cb59616d833d503c3c090116fc0ad1e9d542 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 10 Oct 2020 11:48:05 +0300 Subject: fix: resolve eslint errors --- src/containers/Profile/ProfileInfo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/containers/Profile') diff --git a/src/containers/Profile/ProfileInfo.tsx b/src/containers/Profile/ProfileInfo.tsx index 4f2957a..da952e9 100644 --- a/src/containers/Profile/ProfileInfo.tsx +++ b/src/containers/Profile/ProfileInfo.tsx @@ -94,8 +94,8 @@ const useStyles = makeStyles(theme => ({ const formatDate = (value: Date | string = ''): string => { const date = new Date(value); - const day = ('0' + date.getDate()).slice(-2); - const month = ('0' + date.getMonth()).slice(-2); + const day = (`0${date.getDate()}`).slice(-2); + const month = (`0${date.getMonth()}`).slice(-2); const year = date.getFullYear(); return `${year}-${month}-${day}`; }; -- cgit v1.2.3