aboutsummaryrefslogtreecommitdiff
path: root/src/containers
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/Page/Page.tsx2
-rw-r--r--src/containers/Profile/Profile.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/containers/Page/Page.tsx b/src/containers/Page/Page.tsx
index df27b74..643e6de 100644
--- a/src/containers/Page/Page.tsx
+++ b/src/containers/Page/Page.tsx
@@ -32,7 +32,7 @@ const Page: React.FC = () => {
return (
<SnackbarProvider
- maxSnack={3}
+ maxSnack={isMobile ? 1 : 3}
anchorOrigin={{
vertical: isMobile ? 'top' : 'bottom',
horizontal: 'right'
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) {