From d70af2013d0f58363c2a5167d5f8830ec05e327d Mon Sep 17 00:00:00 2001 From: Yuzuru Date: Thu, 29 Jun 2023 07:49:07 -0500 Subject: [PATCH] fix the silly logger --- packages/common/src/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/Util.ts b/packages/common/src/Util.ts index 09f8f42..548516d 100644 --- a/packages/common/src/Util.ts +++ b/packages/common/src/Util.ts @@ -8,7 +8,7 @@ const isPlainObject = (value: any) => { typeof value.constructor === 'function' && // rome-ignore lint/suspicious/noPrototypeBuiltins: js tricks (value.constructor.prototype.hasOwnProperty('isPrototypeOf') || Object.getPrototypeOf(value.constructor.prototype) === null)) || - (value && Object.getPrototypeOf(value) === null) + (value != undefined && Object.getPrototypeOf(value) === null) ); };