fix nullToDefined

This commit is contained in:
Hailey
2024-07-11 18:36:48 -07:00
parent caf2f31d9a
commit 6aaccd4f15
@@ -44,7 +44,8 @@ export function setContains(key: string, value: string): boolean {
// iOS returns `null` if a value does not exist, and Android returns `undefined. Normalize these here for JS types
function nullToUndefined(value: any) {
if (value === null) {
if (value == null) {
return undefined
}
return value
}