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