mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 15:22:25 +00:00
Make condition simpler
This commit is contained in:
1 parent
0c27610119
commit
0f8c4675cf
1 file changed
+1
-1
@@ -19,7 +19,7 @@ export const useMergedRefs = <T>(
|
||||
refs.forEach((ref) => {
|
||||
if (typeof ref === "function") {
|
||||
ref(value);
|
||||
} else if (ref != null) {
|
||||
} else if (ref) {
|
||||
ref.current = value;
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user