Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
getChainIdsToPoll,
getIsMultichainAccountsState2Enabled,
} from '../../../selectors';
import { detectNfts, updateIncomingTransactions } from '../../../store/actions';
import { detectNfts } from '../../../store/actions';
import AssetList from '../../app/assets/asset-list';
import DeFiTab from '../../app/assets/defi-list/defi-tab';
import { useAssetListTokenDetection } from '../../app/assets/hooks';
Expand Down Expand Up @@ -65,9 +65,6 @@ export const AccountOverviewTabs = ({
if (tabName === AccountOverviewTabKey.Nfts) {
dispatch(detectNfts(selectedChainIds));
}
if (tabName === AccountOverviewTabKey.Activity) {
dispatch(updateIncomingTransactions());
}
trackEvent({
category: MetaMetricsEventCategory.Home,
event: ACCOUNT_OVERVIEW_TAB_KEY_TO_METAMETRICS_EVENT_NAME_MAP[tabName],
Expand Down
17 changes: 0 additions & 17 deletions ui/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3387,23 +3387,6 @@ export function createSpeedUpTransaction(
};
}

export function updateIncomingTransactions(): ThunkAction<
void,
MetaMaskReduxState,
unknown,
AnyAction
> {
return async (dispatch) => {
log.debug(`background.updateIncomingTransactions`);
try {
await submitRequestToBackground('updateIncomingTransactions');
} catch (error) {
logErrorWithMessage(error);
dispatch(displayWarning('Had a problem updating incoming transactions!'));
}
};
}

export function createRetryTransaction(
txId: string,
customGasSettings: CustomGasSettings,
Expand Down
Loading