File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ function DesktopRoot({ store }) {
113
113
} ) ;
114
114
}
115
115
116
- if ( process . env . NODE_ENV = == 'development' && currentAccount ) {
116
+ if ( process . env . NODE_ENV ! == 'development' && currentAccount ) {
117
117
dispatch ( received ( features . mcAuthentication ) ) ;
118
118
dispatch ( push ( '/home' ) ) ;
119
119
} else if ( currentAccount ) {
@@ -123,13 +123,13 @@ function DesktopRoot({ store }) {
123
123
dispatch ( ( ) => {
124
124
switch ( currentAccount . accountType ) {
125
125
case ACCOUNT_MICROSOFT :
126
- loginWithOAuthAccessToken ( ) ;
126
+ dispatch ( loginWithOAuthAccessToken ( ) ) ;
127
127
break ;
128
128
case ACCOUNT_LOCAL :
129
- loginLocalWithoutAccessToken ( ) ;
129
+ dispatch ( loginLocalWithoutAccessToken ( ) ) ;
130
130
break ;
131
131
default :
132
- loginWithAccessToken ( ) ;
132
+ dispatch ( loginWithAccessToken ( ) ) ;
133
133
break ;
134
134
}
135
135
} )
Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ const ProfileSettings = () => {
71
71
dispatch ( ( ) => {
72
72
switch ( account . accountType ) {
73
73
case ACCOUNT_MICROSOFT :
74
- loginWithOAuthAccessToken ( false ) ;
74
+ dispatch ( loginWithOAuthAccessToken ( false ) ) ;
75
75
break ;
76
76
case ACCOUNT_LOCAL :
77
- loginLocalWithoutAccessToken ( false ) ;
77
+ dispatch ( loginLocalWithoutAccessToken ( false ) ) ;
78
78
break ;
79
79
default :
80
- loginWithAccessToken ( false ) ;
80
+ dispatch ( loginWithAccessToken ( false ) ) ;
81
81
break ;
82
82
}
83
83
} )
Original file line number Diff line number Diff line change @@ -271,13 +271,13 @@ export function switchToFirstValidAccount(id) {
271
271
await dispatch ( ( ) => {
272
272
switch ( accounts [ i ] . accountType ) {
273
273
case ACCOUNT_MICROSOFT :
274
- loginWithOAuthAccessToken ( ) ;
274
+ dispatch ( loginWithOAuthAccessToken ( ) ) ;
275
275
break ;
276
276
case ACCOUNT_LOCAL :
277
- loginLocalWithoutAccessToken ( ) ;
277
+ dispatch ( loginLocalWithoutAccessToken ( ) ) ;
278
278
break ;
279
279
default :
280
- loginWithAccessToken ( ) ;
280
+ dispatch ( loginWithAccessToken ( ) ) ;
281
281
break ;
282
282
}
283
283
} ) ;
@@ -752,6 +752,7 @@ export function loginWithAccessToken(redirect = true) {
752
752
753
753
export function loginLocalWithoutAccessToken ( ) {
754
754
return async ( dispatch , getState ) => {
755
+ console . log ( 'lol' ) ;
755
756
const state = getState ( ) ;
756
757
const currentAccount = _getCurrentAccount ( state ) ;
757
758
const { selectedProfile } = currentAccount ;
You can’t perform that action at this time.
0 commit comments