aboutsummaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-10 11:48:05 +0300
committereug-vs <eug-vs@keemail.me>2020-10-10 11:48:05 +0300
commita1a2cb59616d833d503c3c090116fc0ad1e9d542 (patch)
tree230700174a754add5ed962e9315166070241afbd /src/containers
parent4a8149c0c43419e29cedd5117b6441bf7e6eadcd (diff)
downloadwhich-ui-a1a2cb59616d833d503c3c090116fc0ad1e9d542.tar.gz
fix: resolve eslint errors
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/Profile/ProfileInfo.tsx4
1 files changed, 2 insertions, 2 deletions
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}`;
};