From beffd84a21e13ea96d08742d53681b3f975ea25b Mon Sep 17 00:00:00 2001 From: huziibee Date: Tue, 9 Jan 2024 16:37:09 +0200 Subject: [PATCH] added ses --- AWS-APP/Dashboard/scripts.js | 3 +++ 1 file changed, 3 insertions(+) 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); } }