Scheduling infrastructure for absolutely everyone.
fix: refresh UserDropdown after update (#1352)
Joel Lu38f762f7b26b
diff --git a/pages/settings/profile.tsx b/pages/settings/profile.tsxindex c48769c1cbe..9e1da0fec43 100644--- a/pages/settings/profile.tsx+++ b/pages/settings/profile.tsx@@ -97,9 +97,10 @@ function SettingsView(props: ComponentProps<typeof Settings> & { localeProp: strconst { t } = useLocale();const router = useRouter();const mutation = trpc.useMutation("viewer.updateProfile", {- onSuccess: () => {+ onSuccess: async () => {showToast(t("your_user_profile_updated_successfully"), "success");setHasErrors(false); // dismiss any open errors+ await utils.invalidateQueries(["viewer.me"]);},onError: (err) => {setHasErrors(true);