diff --git a/src/visits/reducers/common.ts b/src/visits/reducers/common.ts
index f32048d7..af1eedd1 100644
--- a/src/visits/reducers/common.ts
+++ b/src/visits/reducers/common.ts
@@ -99,15 +99,11 @@ export const lastVisitLoaderForLoader = (
 
 export const createVisitsReducer = <State extends VisitsInfo, AT extends ReturnType<typeof createVisitsAsyncThunk>>(
   name: string,
-  {
-    asyncThunk,
-    largeAction,
-    fallbackToIntervalAction,
-    progressChangedAction,
-  }: AT,
+  asyncThunkCreator: AT,
   initialState: State,
   filterCreatedVisits: (state: State, createdVisits: CreateVisit[]) => CreateVisit[],
 ) => {
+  const { asyncThunk, largeAction, fallbackToIntervalAction, progressChangedAction } = asyncThunkCreator;
   const { reducer, actions } = createSlice({
     name,
     initialState,