Commit 9f91e4ce authored by Pieterjan Vanhoof's avatar Pieterjan Vanhoof Committed by GitHub

Merge pull request #280 from stratisproject/design

Stop sending on error
parents 1ada87f5 fb2864ed
......@@ -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