From b349d430360dc9eff1f5d7f4d562c782a6e9d5c5 Mon Sep 17 00:00:00 2001 From: Christian Alfoni Date: Wed, 28 Aug 2019 19:42:13 +0200 Subject: [PATCH] fix(overmind): add missing typeof for promise check --- packages/node_modules/overmind/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/overmind/src/utils.ts b/packages/node_modules/overmind/src/utils.ts index 5ea9c612..d3b1b693 100644 --- a/packages/node_modules/overmind/src/utils.ts +++ b/packages/node_modules/overmind/src/utils.ts @@ -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') ) }