Hello,
I have created a custom popup to show error messages but the popup shows 3 times when an error occurs. I have even added a condition to not show it (screenshot below) when the popup is already visible but the popup on the website still shows up 3 times. Is there something I am not doing right ?

The steps I use are putting the error message in a state and then displaying the popup with a text based on the state’s value.
