Skip to content

Commit

Permalink
updating the method name to updateDataDeletionTaskStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed May 24, 2024
1 parent 6e7aa91 commit 7660d88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/pages/settings/security-tab/security-tab.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import ProfileSyncToggle from './profile-sync-toggle';
import MetametricsToggle from './metametrics-toggle';
import ClearMetametricsData from '../../../components/app/clear-metametrics-data';
import { DeleteRegulationStatus } from '../../../../app/scripts/controllers/metametrics-data-deletion/metametrics-data-deletion';
import { checkDataDeletionTaskStatus } from '../../../store/actions';
import { updateDataDeletionTaskStatus } from '../../../store/actions';
import { DataDeletionErrorModal } from '../../../components/app/clear-metametrics-data/DataDeletionErrorModal';

export default class SecurityTab extends PureComponent {
Expand Down Expand Up @@ -136,7 +136,7 @@ export default class SecurityTab extends PureComponent {
async componentDidMount() {
const { t } = this.context;
handleSettingsRefs(t, t('securityAndPrivacy'), this.settingsRefs);
await checkDataDeletionTaskStatus();
await updateDataDeletionTaskStatus();
if (this.props.participateInMetaMetrics) {
this.props.continueRecordingMetaMetricsData();
}
Expand Down
6 changes: 3 additions & 3 deletions ui/pages/settings/security-tab/security-tab.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
setUseSafeChainsListValidation,
setUseExternalNameSources,
setUseTransactionSimulations,
updateDataDeletionTaskStatus,
///: BEGIN:ONLY_INCLUDE_IF(blockaid)
setSecurityAlertsEnabled,
checkDataDeletionTaskStatus,
///: END:ONLY_INCLUDE_IF
} from '../../../store/actions';
import {
Expand Down Expand Up @@ -138,8 +138,8 @@ const mapDispatchToProps = (dispatch) => {
setDeleteMetaMetricsDataModalOpen: () => {
return dispatch(openDeleteMetaMetricsDataModal());
},
checkDataDeletionTaskStatus: () => {
return dispatch(checkDataDeletionTaskStatus());
updateDataDeletionTaskStatus: () => {
return dispatch(updateDataDeletionTaskStatus());
},
unMarkingMetaMetricsDataDeletion: () => {
return dispatch(unMarkingMetaMetricsDataDeletion());
Expand Down

0 comments on commit 7660d88

Please sign in to comment.