diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-12 18:29:51 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-12 18:29:51 +0300 |
commit | 1ac600e2fd9024604d98c525957cd2fbfdf9a779 (patch) | |
tree | 872c39e078f478935a9481d89ed5bb09336f6cab /src/Feed | |
parent | f0f192e09993eedc2c9596bcdb520a96f5cfacdb (diff) | |
download | which-ui-1ac600e2fd9024604d98c525957cd2fbfdf9a779.tar.gz |
feat: take user info from database
Diffstat (limited to 'src/Feed')
-rw-r--r-- | src/Feed/Feed.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Feed/Feed.tsx b/src/Feed/Feed.tsx index 51a3c4c..21bda5e 100644 --- a/src/Feed/Feed.tsx +++ b/src/Feed/Feed.tsx @@ -22,7 +22,7 @@ const Feed: React.FC<PropTypes> = ({ page }) => { let endpoint: string; if (page === 'feed') endpoint = '/polls'; - else if (page === 'profile') endpoint = '/profile'; + else if (page === 'profiles') endpoint = '/profiles'; useEffect(() => { get(endpoint).then(response => { |