diff --git a/apps/web/package.json b/apps/web/package.json
index 99d087451..8f598dacf 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -40,7 +40,7 @@
"color-hash": "^2.0.2",
"crypto": "^1.0.1",
"dayjs": "^1.11.8",
- "framer-motion": "^6.5.1",
+ "framer-motion": "^10.12.18",
"i18next": "^22.4.9",
"i18next-icu": "^2.3.0",
"ics": "^3.1.0",
diff --git a/apps/web/src/components/layouts/poll-layout.tsx b/apps/web/src/components/layouts/poll-layout.tsx
index e86b14b84..95b7c334e 100644
--- a/apps/web/src/components/layouts/poll-layout.tsx
+++ b/apps/web/src/components/layouts/poll-layout.tsx
@@ -277,7 +277,7 @@ const Prefetch = ({ children }: React.PropsWithChildren) => {
return ;
}
- if (!poll.isFetched || !watchers.isFetched || !participants.isFetched) {
+ if (!poll.data || !watchers.data || !participants.data) {
return (
diff --git a/apps/web/src/components/poll/mobile-poll/poll-option.tsx b/apps/web/src/components/poll/mobile-poll/poll-option.tsx
index 4bde42d25..a76c43158 100644
--- a/apps/web/src/components/poll/mobile-poll/poll-option.tsx
+++ b/apps/web/src/components/poll/mobile-poll/poll-option.tsx
@@ -243,7 +243,7 @@ const PollOption: React.FunctionComponent = ({
/>
) : (
-
+
=
}}
>
-
+
{
const router = useRouter();
const { token } = router.query;
const posthog = usePostHog();
+ const queryClient = trpc.useContext();
+
const authenticate = trpc.whoami.authenticate.useMutation();
useMount(() => {
@@ -33,7 +35,7 @@ export const Page = () => {
name: user.name,
email: user.email,
});
-
+ queryClient.invalidate();
setTimeout(() => {
router.replace(defaultRedirectPath);
}, 1000);
diff --git a/yarn.lock b/yarn.lock
index 7015c8e30..0940fb669 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5946,6 +5946,15 @@ fraction.js@^4.2.0:
resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz"
integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
+framer-motion@^10.12.18:
+ version "10.12.18"
+ resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-10.12.18.tgz#92015860b6468a82e76c4739fcae81e1f6723b3f"
+ integrity sha512-cfhiUpPbj+0eEWKjuD+5cz5cMqH71xOtMxGiS/cSGfHn2OlHIEAqFnFyzEMENw5PxWR9bMVhatzzpD6lexmHZQ==
+ dependencies:
+ tslib "^2.4.0"
+ optionalDependencies:
+ "@emotion/is-prop-valid" "^0.8.2"
+
framer-motion@^6.5.1:
version "6.5.1"
resolved "https://registry.npmjs.org/framer-motion/-/framer-motion-6.5.1.tgz"