Container opacity based on local state variable issues

Hey,
so i made component state called "promopack", that is set to "1day", "3day" etc. after clicking on container. To focus it i added that opacity of "inactive" containers is 0.25 and one active is 1. The problem is that nothing happens after clicking, and the opacity is always set to 1. Whats wrong?

3 replies