diff --git a/AWS-APP/Dashboard/scripts.js b/AWS-APP/Dashboard/scripts.js index 0f5f896..7acce0c 100644 --- a/AWS-APP/Dashboard/scripts.js +++ b/AWS-APP/Dashboard/scripts.js @@ -69,13 +69,16 @@ async function sendTransactions(transactions) { }); if (!response.ok) { + alert('There was an error sending the email'); throw new Error('Network response was not ok'); } const data = await response.json(); console.log(data); + alert('Email sent successfully'); } catch (error) { + alert('There was an error sending the email'); console.error('There was an error sending the transactions:', error); } }