Skip to content

Commit d14c2e5

Browse files
committed
Swap negative check for positive check
1 parent 3cc74cc commit d14c2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ export const getFirstString = (value: string | string[] | object | undefined): s
110110
return value[0]
111111
}
112112

113-
return typeof value !== "object" ? value : undefined
113+
return typeof value === "string" ? value : undefined
114114
}

0 commit comments

Comments
 (0)