Commit fb2864ed authored by dev0tion's avatar dev0tion

Stop sending on error

parent b87dc1e7
......@@ -108,7 +108,7 @@ export class SendComponent implements OnInit {
error => {
console.log(error);
if (error.status === 0) {
this.genericModalService.openModal(null, "Something went wrong while connecting to the API. Please restart the application.");
this.genericModalService.openModal(null, null);
} else if (error.status >= 400) {
if (!error.json().errors[0]) {
console.log(error);
......@@ -146,6 +146,7 @@ export class SendComponent implements OnInit {
},
error => {
console.log(error);
this.isSending = false;
if (error.status === 0) {
this.genericModalService.openModal(null, null);
} else if (error.status >= 400) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment