fix: proper assignment of thirdpartauthproviders (#34)

This commit is contained in:
Adam Butterworth
2019-05-13 12:18:22 -06:00
committed by GitHub
parent 741a9632f8
commit 48ba152fb7

View File

@@ -124,8 +124,8 @@ export function* handleDisconnectAuth(action) {
yield put(disconnectAuthReset());
yield put(disconnectAuthBegin());
yield call(ApiService.postDisconnectAuth, action.payload.url);
const { data } = yield call(ApiService.getThirdPartyAuthProviders);
yield put(disconnectAuthSuccess({ thirdPartyAuthProviders: data }));
const thirdPartyAuthProviders = yield call(ApiService.getThirdPartyAuthProviders);
yield put(disconnectAuthSuccess({ thirdPartyAuthProviders }));
} catch (e) {
logAPIErrorResponse(e);
yield put(disconnectAuthFailure(action.payload.providerId));