From 33b3066b04f7560455c113a18fe39d33933daaf1 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 8 Oct 2020 20:18:21 +0300 Subject: fix: replace typo id -> username --- src/hooks/APIClient.ts | 4 ++-- 1 file 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 => { ); }; -export const useProfile = (id: string): Response => { - return useSWR(id && `/profiles/${id}`, fetcher); +export const useProfile = (username: string): Response => { + return useSWR(username && `/profiles/${username}`, fetcher); }; export const useFeed = (): Response => { -- cgit v1.2.3