Unhandled error occurs/ My custom popup shows 3 times


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 ?

Screenshot 2022-03-13 at 19.14.33

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.

Screenshot 2022-03-13 at 19.17.31

This topic was automatically closed after 14 days. New replies are no longer allowed.