From 9ff4d5dd2bf63a8f8b1ac57f2dbcbbe55309204d Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Wed, 13 Sep 2023 14:12:09 +0200
Subject: [PATCH] chore: fix dispatch type error

---
 src/store/store.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/store/store.ts b/src/store/store.ts
index 7c5e74fd4..3348dcf8f 100644
--- a/src/store/store.ts
+++ b/src/store/store.ts
@@ -1,4 +1,4 @@
-import { configureStore } from '@reduxjs/toolkit'
+import { Dispatch, configureStore } from '@reduxjs/toolkit'
 import * as Sentry from '@sentry/react'
 import { Client } from 'cozy-client'
 import {
@@ -79,4 +79,5 @@ export const setupStore = (client: Client) => {
   return store
 }
 
-export type AppDispatch = ReturnType<typeof setupStore>['dispatch']
+// export type AppDispatch = ReturnType<typeof setupStore>['dispatch']
+export type AppDispatch = Dispatch<any>
-- 
GitLab