Describe the bug
When hovering over the cart icon a JavaScript error is produced because getBoundingClientRect is being called on null
Isolating the problem (mark completed items with an [x]):
To Reproduce
Steps to reproduce the behavior:
- Load a page which has the cart icon displayed
- View the console in inspector
- Hover over the cart icon with the mouse
- Error will be displayed
Screenshots

Expected behavior
Hovering over the cart icon should not display an error
Browser Environment
Please provide as much detail as possible about your testing environment.
Chrome 137.0.7151.68 on Ubuntu 24.04.2
WordPress Environment
WordPress 6.8.1
Describe the bug
When hovering over the cart icon a JavaScript error is produced because getBoundingClientRect is being called on null
Isolating the problem (mark completed items with an [x]):
To Reproduce
Steps to reproduce the behavior:
Screenshots
Expected behavior
Hovering over the cart icon should not display an error
Browser Environment
Please provide as much detail as possible about your testing environment.
Chrome 137.0.7151.68 on Ubuntu 24.04.2
WordPress Environment
WordPress 6.8.1