From d14c2e5bb7f1e3b1df1eed26e6c95eac7e4a13d9 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 18 Dec 2020 11:21:06 -0600 Subject: [PATCH] Swap negative check for positive check --- src/common/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.ts b/src/common/util.ts index 67e182ce..b4f66be2 100644 --- a/src/common/util.ts +++ b/src/common/util.ts @@ -110,5 +110,5 @@ export const getFirstString = (value: string | string[] | object | undefined): s return value[0] } - return typeof value !== "object" ? value : undefined + return typeof value === "string" ? value : undefined }