Skip to content

Scheduling infrastructure for absolutely everyone.

fix setting away status (#3473)

Carina Wollendorfer0a336df1625b
diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx
index d6e2b517ee5..be6f88816bf 100644
--- a/apps/web/components/Shell.tsx
+++ b/apps/web/components/Shell.tsx
@@ -570,7 +570,7 @@ function UserDropdown({ small }: { small?: boolean }) {
<DropdownMenuItem>
<a
onClick={() => {
- mutation.mutate({ away: user?.away });
+ mutation.mutate({ away: !user?.away });
utils.invalidateQueries("viewer.me");
}}
className="flex min-w-max cursor-pointer px-4 py-2 text-sm hover:bg-gray-100 hover:text-gray-900">