diff --git a/ui/pages/onboarding-flow/privacy-settings/privacy-settings.js b/ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
index ca3bd0af2ff4..ee11f63caf2a 100644
--- a/ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
+++ b/ui/pages/onboarding-flow/privacy-settings/privacy-settings.js
@@ -57,7 +57,6 @@ import {
setIpfsGateway,
setUseCurrencyRateCheck,
setUseMultiAccountBalanceChecker,
- setUsePhishDetect,
setUse4ByteResolution,
setUseTokenDetection,
setUseAddressBarEnsResolution,
@@ -132,7 +131,6 @@ export default function PrivacySettings() {
} = defaultState;
const petnamesEnabled = useSelector(getPetnamesEnabled);
- const [usePhishingDetection, setUsePhishingDetection] = useState(null);
const [turnOn4ByteResolution, setTurnOn4ByteResolution] =
useState(use4ByteResolution);
const [turnOnTokenDetection, setTurnOnTokenDetection] =
@@ -160,17 +158,11 @@ export default function PrivacySettings() {
getExternalServicesOnboardingToggleState,
);
- const phishingToggleState =
- usePhishingDetection === null
- ? externalServicesOnboardingToggleState
- : usePhishingDetection;
-
const profileSyncingProps = useProfileSyncingProps(
externalServicesOnboardingToggleState,
);
const handleSubmit = () => {
- dispatch(setUsePhishDetect(phishingToggleState));
dispatch(setUse4ByteResolution(turnOn4ByteResolution));
dispatch(setUseTokenDetection(turnOnTokenDetection));
dispatch(
@@ -199,7 +191,6 @@ export default function PrivacySettings() {
is_profile_syncing_enabled: profileSyncingProps.isProfileSyncingEnabled,
is_basic_functionality_enabled: externalServicesOnboardingToggleState,
show_incoming_tx: incomingTransactionsPreferences,
- use_phising_detection: usePhishingDetection,
turnon_token_detection: turnOnTokenDetection,
},
});
@@ -720,12 +711,6 @@ export default function PrivacySettings() {
) : null}
{selectedItem && selectedItem.id === 3 ? (
<>
-
{
[CHAIN_IDS.LINEA_GOERLI]: true,
[CHAIN_IDS.LINEA_SEPOLIA]: true,
},
- usePhishDetect: true,
use4ByteResolution: true,
useTokenDetection: false,
useCurrencyRateCheck: true,
@@ -59,7 +58,6 @@ describe('Privacy Settings Onboarding View', () => {
const store = configureMockStore([thunk])(mockStore);
const setFeatureFlagStub = jest.fn();
- const setUsePhishDetectStub = jest.fn();
const setUse4ByteResolutionStub = jest.fn();
const setUseTokenDetectionStub = jest.fn();
const setUseCurrencyRateCheckStub = jest.fn();
@@ -79,7 +77,6 @@ describe('Privacy Settings Onboarding View', () => {
setBackgroundConnection({
setFeatureFlag: setFeatureFlagStub,
- setUsePhishDetect: setUsePhishDetectStub,
setUse4ByteResolution: setUse4ByteResolutionStub,
setUseTokenDetection: setUseTokenDetectionStub,
setUseCurrencyRateCheck: setUseCurrencyRateCheckStub,
@@ -104,7 +101,6 @@ describe('Privacy Settings Onboarding View', () => {
);
// All settings are initialized toggled to be same as default
expect(toggleExternalServicesStub).toHaveBeenCalledTimes(0);
- expect(setUsePhishDetectStub).toHaveBeenCalledTimes(0);
expect(setUse4ByteResolutionStub).toHaveBeenCalledTimes(0);
expect(setUseTokenDetectionStub).toHaveBeenCalledTimes(0);
expect(setUseMultiAccountBalanceCheckerStub).toHaveBeenCalledTimes(0);
@@ -148,9 +144,8 @@ describe('Privacy Settings Onboarding View', () => {
toggles = container.querySelectorAll('input[type=checkbox]');
- fireEvent.click(toggles[0]); // setUsePhishDetectStub
- fireEvent.click(toggles[1]); // setUse4ByteResolutionStub
- fireEvent.click(toggles[2]); // setPreferenceStub
+ fireEvent.click(toggles[0]); // setUse4ByteResolutionStub
+ fireEvent.click(toggles[1]); // setPreferenceStub
fireEvent.click(backButton);
@@ -179,8 +174,6 @@ describe('Privacy Settings Onboarding View', () => {
false,
);
- expect(setUsePhishDetectStub).toHaveBeenCalledTimes(1);
- expect(setUsePhishDetectStub.mock.calls[0][0]).toStrictEqual(false);
expect(setUse4ByteResolutionStub).toHaveBeenCalledTimes(1);
expect(setUse4ByteResolutionStub.mock.calls[0][0]).toStrictEqual(false);
expect(setPreferenceStub).toHaveBeenCalledTimes(1);