Skip to content

Commit

Permalink
fix(overmind): add missing typeof for promise check
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Aug 28, 2019
1 parent dd637ac commit b349d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node_modules/overmind/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function isPromise(maybePromise: any) {
return (
maybePromise instanceof Promise ||
(maybePromise &&
maybePromise.then === 'function' &&
maybePromise.catch === 'function')
typeof maybePromise.then === 'function' &&
typeof maybePromise.catch === 'function')
)
}

Expand Down

0 comments on commit b349d43

Please sign in to comment.