about summary refs log tree commit diff
path: root/src/view/com/util/forms/DropdownButton.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 12:53:46 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 12:53:46 -0600
commita3d2db96457d87b7c9a874d699e51dd5f98750c1 (patch)
treec8eedc8ed83468f5c455903f532fe9cdd9bc9134 /src/view/com/util/forms/DropdownButton.tsx
parent751dfb20fd0d316da396e3c4fc53aaaaa8041dd1 (diff)
downloadvoidsky-a3d2db96457d87b7c9a874d699e51dd5f98750c1.tar.zst
Get MVP of web app running
Diffstat (limited to 'src/view/com/util/forms/DropdownButton.tsx')
-rw-r--r--src/view/com/util/forms/DropdownButton.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/util/forms/DropdownButton.tsx b/src/view/com/util/forms/DropdownButton.tsx
index 1fa03f4c7..f911529d2 100644
--- a/src/view/com/util/forms/DropdownButton.tsx
+++ b/src/view/com/util/forms/DropdownButton.tsx
@@ -76,7 +76,11 @@ export function DropdownButton({
         onPress={onPress}
         hitSlop={HITSLOP}
         // Fix an issue where specific references cause runtime error in jest environment
-        ref={process.env.JEST_WORKER_ID != null ? null : ref}>
+        ref={
+          typeof process !== 'undefined' && process.env.JEST_WORKER_ID != null
+            ? null
+            : ref
+        }>
         {children}
       </TouchableOpacity>
     )