easy-email-extensions 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index2.js CHANGED
@@ -47637,13 +47637,15 @@ function HoverTooltip() {
47637
47637
  }, [initialized]);
47638
47638
  useEffect(() => {
47639
47639
  const rootBounds = rootRef.current;
47640
- if (!initialized || !rootBounds)
47640
+ if (!initialized)
47641
47641
  return;
47642
47642
  if (hoverIdx) {
47643
47643
  const promiseObj = awaitForElement(hoverIdx);
47644
47644
  promiseObj.promise.then((blockNode2) => {
47645
- const { top } = blockNode2.getBoundingClientRect();
47646
- setIsTop(rootBounds.top === top);
47645
+ if (rootBounds) {
47646
+ const { top } = blockNode2.getBoundingClientRect();
47647
+ setIsTop(rootBounds.top === top);
47648
+ }
47647
47649
  setBlockNode(blockNode2);
47648
47650
  });
47649
47651
  return () => {