diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-10-08 20:40:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 20:40:45 +0300 |
commit | bdb4d194307c9755c2083c1a11bb876abebcb6de (patch) | |
tree | 9aff25b0bd0b47127b66e4db4818468ec70719bf /src/hooks/APIClient.ts | |
parent | 45b4094c02301ff854b8b8017437ad9989efa117 (diff) | |
parent | 2c093ce738cb1281db04a8a3f2b6a35b3aa9b354 (diff) | |
download | which-ui-bdb4d194307c9755c2083c1a11bb876abebcb6de.tar.gz |
Merge pull request #102 from which-ecosystem/feat/modal
Modal improvements
Diffstat (limited to 'src/hooks/APIClient.ts')
-rw-r--r-- | src/hooks/APIClient.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks/APIClient.ts b/src/hooks/APIClient.ts index cf5d247..68413b0 100644 --- a/src/hooks/APIClient.ts +++ b/src/hooks/APIClient.ts @@ -13,8 +13,8 @@ export const useUser = (username: string | null): Response<User> => { ); }; -export const useProfile = (id: string): Response<Poll[]> => { - return useSWR(id && `/profiles/${id}`, fetcher); +export const useProfile = (username: string): Response<Poll[]> => { + return useSWR(username && `/profiles/${username}`, fetcher); }; export const useFeed = (): Response<Poll[]> => { |