Geo: fetch after authentication since it needs auth_token (#1119)

This commit is contained in:
infinite-persistence 2022-03-16 08:09:43 -07:00 committed by GitHub
parent bffc27e8d0
commit f7bceb3734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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());

View file

@ -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) => {