Skip to content

Commit

Permalink
added ses
Browse files Browse the repository at this point in the history
  • Loading branch information
huziibee committed Jan 9, 2024
1 parent 9b3bd7f commit beffd84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AWS-APP/Dashboard/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit beffd84

Please sign in to comment.