From 9e76613b24bd03eb6031338c444ca9af1565d29b Mon Sep 17 00:00:00 2001 From: GuiSanto <99729373+GuiSanto@users.noreply.github.com> Date: Wed, 4 Jan 2023 16:08:10 +0100 Subject: [PATCH] fix: random responsible generator fixed (#789) --- frontend/src/components/Board/Settings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Board/Settings/index.tsx b/frontend/src/components/Board/Settings/index.tsx index c5aeb7555..0c7c01aba 100644 --- a/frontend/src/components/Board/Settings/index.tsx +++ b/frontend/src/components/Board/Settings/index.tsx @@ -175,7 +175,7 @@ const BoardSettings = ({ // Method to generate a random responsible const handleRandomResponsible = () => { - if (switchesState.responsible) return; + if (!switchesState.responsible) return; const cloneUsers = [...deepClone(data.users)].map((user) => ({ ...user,