From 35fcdceb8f04fe333d45c5b1cb7ba395352c92d6 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 10 Aug 2020 13:22:00 +0300 Subject: feat: only allow 1 snackbar on mobile --- src/containers/Profile/Profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/containers/Profile') 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) { -- cgit v1.2.3