From c81e8c0ad0094eec30a34c6f8a6e5f4549ea71be Mon Sep 17 00:00:00 2001 From: scffs Date: Sat, 23 Mar 2024 22:49:40 +0700 Subject: [PATCH] use `Date` for age --- src/views/Profile/ProfileInfo/data.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Profile/ProfileInfo/data.tsx b/src/views/Profile/ProfileInfo/data.tsx index d43f353..50d0bf1 100644 --- a/src/views/Profile/ProfileInfo/data.tsx +++ b/src/views/Profile/ProfileInfo/data.tsx @@ -34,7 +34,7 @@ import LinkWithImage from './LinkWithImage.tsx' export const userInfoItems = [ { label: 'Возраст', - value: '18' + value: new Date().getFullYear() - 2005 }, { label: 'Город',