fix setting away status (#3473)

This commit is contained in:
Carina Wollendorfer authored and GitHub committed 2022-07-20 18:32:46 -06:00
1 parent 5a0cef7fb9
commit 0a336df162
1 file changed
+1 -1
+1 -1
View File
@@ -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">