diff --git a/src/hooks.ts b/src/hooks.ts index c20cc63..a6bf7df 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -53,7 +53,7 @@ export function useOGL( selector: (state: RootState) => T = (state) => state as unknown as T, equalityFn?: (state: T, newState: T) => boolean, ) { - return useStore()(selector, equalityFn) + return useStore()(selector, equalityFn!) } export interface ObjectMap {