diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 367a0dd10a18..b4983f6b3db2 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -48945,7 +48945,7 @@ E.showDialog(true, new O.confirmCallback_closure(typeToConfirm, callback, t1, title, askForReason, t2 ? null : t1.get$areYouSure()), context, null, true, type$.legacy_AlertDialog); }, passwordCallback: function(alwaysRequire, callback, context) { - var error, skipOAuth, exception, _null = null, + var error, t4, exception, _null = null, _s21_ = "please_set_a_password", _s12_ = "set_password", store = O.StoreProvider_of(context, type$.legacy_AppState), @@ -48954,15 +48954,15 @@ t2 = state, t3 = t2.userCompanyStates; t2 = t2.uiState.selectedCompanyIndex; - skipOAuth = J.$index$asx(t3._list, t2).userCompany.user.oauthProvider.length === 0 && true; + t2 = J.$index$asx(t3._list, t2).userCompany.user.oauthProvider; if (alwaysRequire) { - t2 = state; - t3 = t2.userCompanyStates; - t2 = t2.uiState.selectedCompanyIndex; - t2 = !J.$index$asx(t3._list, t2).userCompany.user.hasPassword; + t3 = state; + t4 = t3.userCompanyStates; + t3 = t3.uiState.selectedCompanyIndex; + t3 = !J.$index$asx(t4._list, t3).userCompany.user.hasPassword; } else - t2 = false; - if (t2) { + t3 = false; + if (t3) { t1 = t1.localeCode; t2 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t1), _s21_); if (t2 == null) @@ -48976,16 +48976,8 @@ if (state.get$hasRecentlyEnteredPassword() && !alwaysRequire) { callback.call$2(_null, _null); return; - } else { - t1 = state; - t2 = t1.userCompanyStates; - t1 = t1.uiState.selectedCompanyIndex; - if (!J.$index$asx(t2._list, t1).userCompany.user.hasPassword && skipOAuth) { - callback.call$2(_null, _null); - return; - } } - if (skipOAuth) { + if (t2.length === 0) { E.showDialog(false, new O.passwordCallback_closure0(callback), context, _null, true, type$.Null); return; }