Solutionunvalidated
Access the message from the first element of the data array if it exists — if (Array.isArray(response.data) && response.data[0]?.message). Tension: I was not checking for all scenarios. Outcome: const errorMessage = 'Internal Server Error. The page will refresh shortly.'.
303c01cf-e629-4b30-9120-3b40c448f461
Access the message from the first element of the data array if it exists — if (Array.isArray(response.data) && response.data[0]?.message). Tension: I was not checking for all scenarios. Outcome: const errorMessage = 'Internal Server Error. The page will refresh shortly.'.