Buttons with icons do not change in the prototype


I just started Figma and I’m trying to get used to it.

The problem I’m having is this:

I added my icons to the buttons as variables and connected them to each other as prototypes. When I add any of my icon buttons to the page, I change the icon from the instance swap, but the icon of the hoover button remains the same as the icon I put in the main component. I hope I explained my problem.
My hoover button looks like this in the prototype
Ekran görüntüsü 2023-10-24 185316

try rename the icon layer on your variables, all icon’s layer in each variable need to be same to make it works. hope this answer.