From a17f59852dc5eafebd5a726206266ef7a15c1431 Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Mon, 1 Jul 2024 21:49:14 -0300 Subject: [PATCH] Fix currentCommunicator on login action --- src/components/Account/Login/Login.actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Account/Login/Login.actions.js b/src/components/Account/Login/Login.actions.js index cf96125bf..1c19a48bf 100644 --- a/src/components/Account/Login/Login.actions.js +++ b/src/components/Account/Login/Login.actions.js @@ -147,7 +147,8 @@ export function login({ email, password, activatedData }, type = 'local') { ); if (loginData.communicators && loginData.communicators.length) { - currentCommunicator = loginData.communicators[0]; + currentCommunicator = + loginData.communicators[loginData.communicators.length - 1]; //use the latest communicator } const localBoardsIds = [];