From f981eaa27eea3b7e4c4075f4d5369c42ba5b2984 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 27 Jun 2023 09:34:00 -0400 Subject: [PATCH] Fix type --- app/soapbox/actions/mutes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/mutes.ts b/app/soapbox/actions/mutes.ts index 3589153e09..205ee4677f 100644 --- a/app/soapbox/actions/mutes.ts +++ b/app/soapbox/actions/mutes.ts @@ -1,5 +1,6 @@ import { openModal } from './modals'; +import type { Account } from 'soapbox/schemas'; import type { AppDispatch } from 'soapbox/store'; import type { Account as AccountEntity } from 'soapbox/types/entities'; @@ -7,7 +8,7 @@ const MUTES_INIT_MODAL = 'MUTES_INIT_MODAL'; const MUTES_TOGGLE_HIDE_NOTIFICATIONS = 'MUTES_TOGGLE_HIDE_NOTIFICATIONS'; const MUTES_CHANGE_DURATION = 'MUTES_CHANGE_DURATION'; -const initMuteModal = (account: AccountEntity) => +const initMuteModal = (account: AccountEntity | Account) => (dispatch: AppDispatch) => { dispatch({ type: MUTES_INIT_MODAL,