Skip to content

Commit

Permalink
Merge pull request #9937 from Expensify/techievivek_refactor_User_IsU…
Browse files Browse the repository at this point in the history
…singExpensifyCard

Refactor User_IsUsingExpensifyCard part 1
  • Loading branch information
luacmartins authored Jul 18, 2022
2 parents c45e58f + 617c7de commit b31f0eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/libs/actions/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Log from '../Log';
import Performance from '../Performance';
import Timing from './Timing';
import * as PersonalDetails from './PersonalDetails';
import * as User from './User';
import * as Report from './Report';
import * as BankAccounts from './BankAccounts';
import * as Policy from './Policy';
Expand Down Expand Up @@ -91,7 +90,6 @@ AppState.addEventListener('change', (nextAppState) => {
* @returns {Promise}
*/
function getAppData(shouldSyncPolicyList = true) {
User.getDomainInfo();
BankAccounts.fetchUserWallet();

if (shouldSyncPolicyList) {
Expand Down
11 changes: 0 additions & 11 deletions src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,6 @@ function isBlockedFromConcierge(blockedFromConcierge) {
return moment().isBefore(moment(blockedFromConcierge.expiresAt), 'day');
}

/**
* Fetch whether the user has the Expensify card enabled.
*/
function getDomainInfo() {
DeprecatedAPI.User_IsUsingExpensifyCard()
.then(({isUsingExpensifyCard}) => {
Onyx.merge(ONYXKEYS.USER, {isUsingExpensifyCard});
});
}

/**
* Initialize our pusher subscription to listen for user changes
*/
Expand Down Expand Up @@ -431,7 +421,6 @@ export {
setSecondaryLoginAndNavigate,
validateLogin,
isBlockedFromConcierge,
getDomainInfo,
subscribeToUserEvents,
setPreferredSkinTone,
setShouldUseSecureStaging,
Expand Down

0 comments on commit b31f0eb

Please sign in to comment.