diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-30 01:34:51 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-30 01:34:51 +0300 |
commit | e170d04d5d2c8c86d2683f3accb4feb2d94c881a (patch) | |
tree | c9028ea3ff850774d33cbc510eb19dd0e9f7aade /src/pages/ProfilePage | |
parent | b31ed66aafbe1d5dbe70d0cdfd70864204510d81 (diff) | |
download | which-ui-e170d04d5d2c8c86d2683f3accb4feb2d94c881a.tar.gz |
style: fix linting errors
Diffstat (limited to 'src/pages/ProfilePage')
-rw-r--r-- | src/pages/ProfilePage/ProfilePage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/ProfilePage/ProfilePage.tsx b/src/pages/ProfilePage/ProfilePage.tsx index ca39746..2c18466 100644 --- a/src/pages/ProfilePage/ProfilePage.tsx +++ b/src/pages/ProfilePage/ProfilePage.tsx @@ -16,7 +16,7 @@ const ProfilePage: React.FC = () => { const { user } = useAuth(); useEffect(() => { - const id = page?.id || user?._id + const id = page?.id || user?._id; if (id) { get(`/users/${id}`).then(response => { setUserInfo(response.data); |