mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-14 04:37:03 +00:00
Make condition simpler
This commit is contained in:
@@ -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