Skip to content

Commit d14c2e5

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)