Some sold-out badges are merging the second image on hover

Upon adding a second image on hover, some of the sold out products are automatically showing the second image. Is there any way I can remove this second image on hover effect from sold out products?

Thank you in advance for your help on this!

UPDATE: SOLVED on my own.

If anyone else ever runs into this same problem, I added:

{% if sold_out %}EzfyReveal--disabled{% endif %}
{% if sold_out %}{% assign secondary_image = product.images[0] %}{% endif %}

Under:

1 Like