diff --git a/src/actions/push-notifications/index.ts b/src/actions/push-notifications/index.ts index 69fdf2787..45110c389 100644 --- a/src/actions/push-notifications/index.ts +++ b/src/actions/push-notifications/index.ts @@ -9,6 +9,12 @@ import { import type { AppDispatch } from 'soapbox/store'; +const changeAlerts = (path: Array, value: any) => + (dispatch: AppDispatch) => { + dispatch(setAlerts(path, value)); + dispatch(saveSettings() as any); + }; + export { SET_BROWSER_SUPPORT, SET_SUBSCRIPTION, @@ -17,9 +23,3 @@ export { register, changeAlerts, }; - -const changeAlerts = (path: Array, value: any) => - (dispatch: AppDispatch) => { - dispatch(setAlerts(path, value)); - dispatch(saveSettings() as any); - }; diff --git a/src/components/sidebar-menu.tsx b/src/components/sidebar-menu.tsx index 44fa178e9..82c4e4746 100644 --- a/src/components/sidebar-menu.tsx +++ b/src/components/sidebar-menu.tsx @@ -194,7 +194,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { }) } > -
+
{account ? (