Swap negative check for positive check

This commit is contained in:
Asher 2020-12-18 11:21:06 -06:00
parent 3cc74ccd79
commit d14c2e5bb7
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 1 additions and 1 deletions

View File

@ -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
}