Skip to content

Commit

Permalink
Fixed Issue with multiple emails
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard committed Jan 4, 2018
1 parent a2d48e2 commit 69e40a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion customer-support
Submodule customer-support deleted from e707d8
21 changes: 0 additions & 21 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@ document.addEventListener('DOMContentLoaded', event => {
}

function createComplaint(e) {
<<<<<<< HEAD

if(model.name == undefined || model.email == undefined || model.topic == undefined || model.message == undefined){

let resp = "";

if(model.name == undefined){
resp+="**Name** is empty, please fill in your name. \n\n";
}
if(model.email == undefined){
resp+="**Email** is empty, please fill in your email adress. \n\n";
}
if(model.topic == undefined){
resp+="**Issue** You did not select a relevant issue, please select **other** if you're having a different problem not listed.\n\n";
}
if(model.message == undefined){
resp+="**Message** Please fill out a message decribing your issue.\n\n";
}

=======
e.preventDefault();

if (!model.name || !model.email || !model.topic || !model.message) {
Expand All @@ -76,7 +56,6 @@ document.addEventListener('DOMContentLoaded', event => {
!model.email && (resp += 'Please fill in your email adress. \n\n');
!model.topic && (resp += `You did not select a relevant issue, please select **other** if you're having a different problem not listed.\n\n`);
!model.message && (resp += 'Please fill out a message decribing your issue.\n\n');
>>>>>>> e707d85aa52167100430da7f0f9237421af08b6e
alert(resp);
return;
}
Expand Down
1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ emitter.on('message-received', async data => {




server.listen(port, _ => console.log(`Server listening at port ${port}`));

0 comments on commit 69e40a7

Please sign in to comment.