From 0a336df1625bf80a82ca946275a0d065b448b99e Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Wed, 20 Jul 2022 20:32:46 -0400 Subject: [PATCH] fix setting away status (#3473) --- apps/web/components/Shell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx index d6e2b517ee..be6f88816b 100644 --- a/apps/web/components/Shell.tsx +++ b/apps/web/components/Shell.tsx @@ -570,7 +570,7 @@ function UserDropdown({ small }: { small?: boolean }) { { - 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">