Merge branch 'main' into add_booking_confirmed_webhook_event

add_booking_confirmed_webhook_event
kodiakhq[bot] 2022-01-12 13:47:30 +00:00 committed by GitHub
commit 5579a89613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -360,7 +360,11 @@ function UserDropdown({ small }: { small?: boolean }) {
const { t } = useLocale();
const query = useMeQuery();
const user = query.data;
const mutation = trpc.useMutation("viewer.away");
const mutation = trpc.useMutation("viewer.away", {
onSettled() {
utils.invalidateQueries("viewer.me");
},
});
const utils = trpc.useContext();
return (