How to stop Like and Dislike buttons being activated simultaneously

Hello, new to Figma so apologies if the terminology is off… and probably why I’ve not found a solution on a topic search.

I’ve got 3 state variants for my Like and Dislike buttons. Independently they work well to be rest (not activated), hover and activated (on click). But I don’t know how to set it up so that the Like and Dislike button work as a system, i.e. automatically setting the Like button back to rest if someone changes their mind and clicks on Dislike.

As currently it allows the user to both Like and Dislike.