Geo: fetch after authentication since it needs auth_token (#1119)
This commit is contained in:
parent
bffc27e8d0
commit
f7bceb3734
2 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,6 @@ import React, { Fragment, useState, useEffect } from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import { doDaemonReady, doAutoUpdate, doOpenModal, doHideModal, doToggle3PAnalytics } from 'redux/actions/app';
|
||||
import { doFetchGeoBlockedList } from 'redux/actions/blocked';
|
||||
import Lbry, { apiCall } from 'lbry';
|
||||
import { isURIValid } from 'util/lbryURI';
|
||||
import { setSearchApi } from 'redux/actions/search';
|
||||
|
@ -247,7 +246,6 @@ function AppWrapper() {
|
|||
app.store.dispatch(doUpdateIsNightAsync());
|
||||
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
||||
app.store.dispatch(doFilteredOutpointsSubscribe());
|
||||
app.store.dispatch(doFetchGeoBlockedList());
|
||||
}, 25);
|
||||
|
||||
analytics.startupEvent(Date.now());
|
||||
|
|
|
@ -6,6 +6,7 @@ import { batchActions } from 'util/batch-actions';
|
|||
import { getStripeEnvironment } from 'util/stripe';
|
||||
|
||||
import * as ACTIONS from 'constants/action_types';
|
||||
import { doFetchGeoBlockedList } from 'redux/actions/blocked';
|
||||
import { doClaimRewardType, doRewardList } from 'redux/actions/rewards';
|
||||
import { selectEmailToVerify, selectPhoneToVerify, selectUserCountryCode, selectUser } from 'redux/selectors/user';
|
||||
import { doToast } from 'redux/actions/notifications';
|
||||
|
@ -193,6 +194,8 @@ export function doAuthenticate(
|
|||
doInstallNew(appVersion, callbackForUsersWhoAreSharingData, DOMAIN);
|
||||
}
|
||||
}
|
||||
|
||||
dispatch(doFetchGeoBlockedList());
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
Loading…
Reference in a new issue