Hi, I'm trying to do thistoast.error(error || "Something went wrong!")), basically if error is undefined i want to pass something went wrong string but it is not working i think toast is trying to render this without evaluating the expression inside it. Is there any way to achieve this functionality
Hi, I'm trying to do this
toast.error(error || "Something went wrong!")),
basically iferror
isundefined
i want to pass something went wrong string but it is not working i think toast is trying to render this without evaluating the expression inside it. Is there any way to achieve this functionality