aboutsummaryrefslogtreecommitdiff
path: root/src/containers/Profile
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-10 13:22:00 +0300
committereug-vs <eug-vs@keemail.me>2020-08-10 13:22:00 +0300
commit35fcdceb8f04fe333d45c5b1cb7ba395352c92d6 (patch)
tree965dcc6f7aaa6f18508b5785723737a1702a1980 /src/containers/Profile
parenta8424edaea142f159022506dc8c8799718469d30 (diff)
downloadwhich-ui-35fcdceb8f04fe333d45c5b1cb7ba395352c92d6.tar.gz
feat: only allow 1 snackbar on mobile
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) {