From d4415a0e347577cc172b461b6b38bc4f1d995f16 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Mon, 18 Jul 2022 11:37:47 +0800 Subject: [PATCH] Update BaseProvider.ts --- src/base/provider/BaseProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/provider/BaseProvider.ts b/src/base/provider/BaseProvider.ts index 3861d7a..fe605e5 100644 --- a/src/base/provider/BaseProvider.ts +++ b/src/base/provider/BaseProvider.ts @@ -31,7 +31,7 @@ export class BaseProvider { } static checkConfig(config: any) { - if (typeof config.source !== "object") { + if (typeof config?.source !== "object") { return false; }