From 30116c183f66c640ffae42059aae06ec4ea0e8a4 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 7 Mar 2022 13:47:18 +0100 Subject: [PATCH] Resolve #268 --- dev/View/User/SystemDropDown.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/View/User/SystemDropDown.js b/dev/View/User/SystemDropDown.js index 50b99e250..9916cf3d0 100644 --- a/dev/View/User/SystemDropDown.js +++ b/dev/View/User/SystemDropDown.js @@ -53,7 +53,8 @@ export class SystemDropDownUserView extends AbstractViewRight { } accountClick(account, event) { - if (account && 0 === event.button) { + let email = account && account.email; + if (email && 0 === event.button && AccountUserStore.email() != email) { AccountUserStore.loading(true); event.preventDefault(); event.stopPropagation(); @@ -61,7 +62,7 @@ export class SystemDropDownUserView extends AbstractViewRight { (iError/*, oData*/) => { if (iError) { AccountUserStore.loading(false); - alert(getNotification(iError).replace('%EMAIL%', account.email)); + alert(getNotification(iError).replace('%EMAIL%', email)); if (account.isAdditional()) { showScreenPopup(AccountPopupView, [account]); } @@ -84,7 +85,7 @@ export class SystemDropDownUserView extends AbstractViewRight { */ rl.route.reload(); } - }, {Email:account.email} + }, {Email:email} ); } return true;