Skip to content

Commit

Permalink
feat: remove friction modal for enabling the feature from settings on…
Browse files Browse the repository at this point in the history
… iOS (#8552)
  • Loading branch information
jpuri authored Feb 8, 2024
1 parent 34f9da1 commit e470f74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/Views/Settings/ExperimentalSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ const ExperimentalSettings = ({ navigation, route }: Props) => {

const toggleSecurityAlertsEnabled = () => {
if (securityAlertsEnabled) {
PreferencesController?.setSecurityAlertsEnabled(!securityAlertsEnabled);
PreferencesController?.setSecurityAlertsEnabled(false);
AnalyticsV2.trackEvent(
MetaMetricsEvents.SETTINGS_EXPERIMENTAL_SECURITY_ALERTS_ENABLED,
{
security_alerts_enabled: false,
},
);
} else if (Device.isIos()) {
PreferencesController?.setSecurityAlertsEnabled(true);
} else {
navigation.navigate(Routes.MODAL.ROOT_MODAL_FLOW, {
screen: Routes.SHEET.BLOCKAID_INDICATOR,
Expand Down

0 comments on commit e470f74

Please sign in to comment.