aboutsummaryrefslogtreecommitdiff
path: root/src/containers/Profile
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/Profile')
-rw-r--r--src/containers/Profile/Profile.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/containers/Profile/Profile.tsx b/src/containers/Profile/Profile.tsx
index af52e5e..f7678de 100644
--- a/src/containers/Profile/Profile.tsx
+++ b/src/containers/Profile/Profile.tsx
@@ -16,7 +16,7 @@ const Profile: React.FC = () => {
const { user } = useAuth();
const { data: userInfo, mutate: setUserInfo } = useUser(username);
- const { data: polls, mutate: mutatePolls, isValidating } = useProfile(userInfo?._id);
+ const { data: polls, mutate: mutatePolls, isValidating } = useProfile(username);
useEffect(() => {
if (!username) {