aboutsummaryrefslogtreecommitdiff
path: root/src/ProfileInfo/ProfileInfo.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-12 19:58:36 +0300
committereug-vs <eug-vs@keemail.me>2020-06-12 19:58:36 +0300
commit0d878909fe17311910f2ba13e203bdfa1bc72a1e (patch)
tree14c1bda2c6d42b5792cb7bf070b07df316c10825 /src/ProfileInfo/ProfileInfo.tsx
parent282bd3180b149571cfc5caad98d8b462596157ef (diff)
downloadwhich-ui-0d878909fe17311910f2ba13e203bdfa1bc72a1e.tar.gz
feat: fetch default user
Diffstat (limited to 'src/ProfileInfo/ProfileInfo.tsx')
-rw-r--r--src/ProfileInfo/ProfileInfo.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProfileInfo/ProfileInfo.tsx b/src/ProfileInfo/ProfileInfo.tsx
index 2bba586..a7289df 100644
--- a/src/ProfileInfo/ProfileInfo.tsx
+++ b/src/ProfileInfo/ProfileInfo.tsx
@@ -37,7 +37,7 @@ const useStyles = makeStyles({
const ProfileInfo: React.FC<PropTypes> = ({ id }) => {
const [userInfo, setUserInfo] = useState<User>();
- get(`/users/ + ${id}`).then(response => {
+ get(`/users/${id}`).then(response => {
setUserInfo(response.data);
});