We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd637ac commit b349d43Copy full SHA for b349d43
packages/node_modules/overmind/src/utils.ts
@@ -20,8 +20,8 @@ export function isPromise(maybePromise: any) {
20
return (
21
maybePromise instanceof Promise ||
22
(maybePromise &&
23
- maybePromise.then === 'function' &&
24
- maybePromise.catch === 'function')
+ typeof maybePromise.then === 'function' &&
+ typeof maybePromise.catch === 'function')
25
)
26
}
27
0 commit comments