remove unnecessary check if observer is defined

This commit is contained in:
Tomas Nygren 2022-09-14 10:32:17 +10:00
parent d35ed61320
commit d06ab1c64b

View File

@ -45,7 +45,7 @@ const useMutationObserver = ({
);
useEffect(() => {
if (observer && element?.current) {
if (element?.current) {
observer.observe(element.current, options);
}