From 1c9aa9bf338fb5b7d24556e2a66f1b54f572b01c Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 31 Oct 2018 15:41:56 -0300 Subject: [PATCH] [FIX] App connects to previous server instead of the recent added (#518) --- app/sagas/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sagas/login.js b/app/sagas/login.js index 7d4b2519..b1011158 100644 --- a/app/sagas/login.js +++ b/app/sagas/login.js @@ -48,11 +48,11 @@ const handleLoginSuccess = function* handleLoginSuccess() { } else { yield delay(300); if (adding) { + yield put(serverFinishAdd()); yield Navigation.dismissAllModals(); } else { yield put(appStart('inside')); } - yield put(serverFinishAdd()); } } catch (e) { log('handleLoginSuccess', e);