Skip to content

Commit b349d43

Browse files
fix(overmind): add missing typeof for promise check
1 parent dd637ac commit b349d43

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/overmind/src

1 file changed

+2
-2
lines changed

packages/node_modules/overmind/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function isPromise(maybePromise: any) {
2020
return (
2121
maybePromise instanceof Promise ||
2222
(maybePromise &&
23-
maybePromise.then === 'function' &&
24-
maybePromise.catch === 'function')
23+
typeof maybePromise.then === 'function' &&
24+
typeof maybePromise.catch === 'function')
2525
)
2626
}
2727

0 commit comments

Comments
 (0)