fix setting away status (#3473)
This commit is contained in:
1 parent
5a0cef7fb9
commit
0a336df162
1 file changed
+1
-1
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user