Make condition simpler

This commit is contained in:
Robin
2025-06-24 08:28:00 -04:00
parent 0c27610119
commit 0f8c4675cf

View File

@@ -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;
}
}),