[FIX] App connects to previous server instead of the recent added (#518)

This commit is contained in:
Diego Mello 2018-10-31 15:41:56 -03:00 committed by GitHub
parent e7277be004
commit 1c9aa9bf33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,11 +48,11 @@ const handleLoginSuccess = function* handleLoginSuccess() {
} else { } else {
yield delay(300); yield delay(300);
if (adding) { if (adding) {
yield put(serverFinishAdd());
yield Navigation.dismissAllModals(); yield Navigation.dismissAllModals();
} else { } else {
yield put(appStart('inside')); yield put(appStart('inside'));
} }
yield put(serverFinishAdd());
} }
} catch (e) { } catch (e) {
log('handleLoginSuccess', e); log('handleLoginSuccess', e);