Skip to content

Commit

Permalink
Fix currentCommunicator on login action
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed Jul 2, 2024
1 parent 00e2c15 commit a17f598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Account/Login/Login.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit a17f598

Please sign in to comment.