From 7e830399994a89cb00b342fa0f5dbc046be03a5b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 20 Jun 2023 21:08:44 -0500 Subject: [PATCH] Improve reducer type --- app/soapbox/features/groups/__tests__/pending-requests.test.tsx | 1 - app/soapbox/reducers/index.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/soapbox/features/groups/__tests__/pending-requests.test.tsx b/app/soapbox/features/groups/__tests__/pending-requests.test.tsx index adbe4003e..7df712b38 100644 --- a/app/soapbox/features/groups/__tests__/pending-requests.test.tsx +++ b/app/soapbox/features/groups/__tests__/pending-requests.test.tsx @@ -24,7 +24,6 @@ const store: any = { }, instance: normalizeInstance({ version: '3.4.1 (compatible; TruthSocial 1.0.0)', - software: 'TRUTHSOCIAL', }), }; diff --git a/app/soapbox/reducers/index.ts b/app/soapbox/reducers/index.ts index 21b5c2664..97799761a 100644 --- a/app/soapbox/reducers/index.ts +++ b/app/soapbox/reducers/index.ts @@ -187,7 +187,7 @@ const accountsSelector = createSelector( const extendedRootReducer = ( state: InferState, action: AnyAction, -): ReturnType & { accounts: ReturnType } => { +): ReturnType => { const extendedState = rootReducer(state, action); return extendedState.set('accounts', accountsSelector(extendedState)); };