Commit 6db2c491 authored by dev0tion's avatar dev0tion

Subscribe to error message instead of description

parent 49ddd707
......@@ -76,7 +76,7 @@ export class DashboardComponent implements OnInit {
}
else {
if (error.json().errors[0].description) {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
} else {
this.cancelSubscriptions();
this.startSubscriptions();
......@@ -113,7 +113,7 @@ export class DashboardComponent implements OnInit {
}
else {
if (error.json().errors[0].description) {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
} else {
this.cancelSubscriptions();
this.startSubscriptions();
......
......@@ -66,7 +66,7 @@ export class HistoryComponent {
}
else {
if (error.json().errors[0].description) {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
} else {
this.cancelSubscriptions();
this.startSubscriptions();
......
......@@ -47,7 +47,7 @@ export class ReceiveComponent {
console.log(error);
}
else {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
}
}
}
......
......@@ -114,7 +114,7 @@ export class SendComponent implements OnInit {
console.log(error);
}
else {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
}
}
},
......@@ -154,7 +154,7 @@ export class SendComponent implements OnInit {
console.log(error);
}
else {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
}
}
},
......@@ -194,7 +194,7 @@ export class SendComponent implements OnInit {
console.log(error);
}
else {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
}
}
},
......
......@@ -70,7 +70,7 @@ export class StatusBarComponent implements OnInit {
}
else {
if (error.json().errors[0].description) {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
} else {
this.cancelSubscriptions();
this.startSubscriptions();
......
......@@ -59,7 +59,7 @@ export class TransactionDetailsComponent implements OnInit, OnDestroy {
}
else {
if (error.json().errors[0].description) {
this.genericModalService.openModal(null, error.json().errors[0].description);
this.genericModalService.openModal(null, error.json().errors[0].message);
} else {
this.cancelSubscriptions();
this.startSubscriptions();
......
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