diff --git a/src/utils.tsx b/src/utils.tsx index 4f469344a73e580c1683bd3c0724e44c5f32bd80..af8a92e3221d41a2f78b42191bb65f30b5adbcf1 100644 --- a/src/utils.tsx +++ b/src/utils.tsx @@ -1,6 +1,6 @@ import { useLogout, useGetIdentity, useNotification } from '@refinedev/core' -const doLogout = (logout: Function, notify: Function) => { +const doLogout = (logout: Function, notify: (Function | undefined)) => { logout() notify?.({ type: 'error',