Skip to content

Commit

Permalink
fix setting away status (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarinaWolli committed Jul 21, 2022
1 parent 5a0cef7 commit 0a336df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/components/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 0a336df

Please sign in to comment.