Commit d6de1a0f authored by dev0tion's avatar dev0tion

Convert data to json format

parent dd6bd0d1
......@@ -31,7 +31,7 @@ export class CreateComponent {
.subscribe(
response => {
if (response.status >= 200 && response.status < 400){
this.responseMessage = response;
this.responseMessage = response.json();
}
},
error => {
......
......@@ -23,7 +23,7 @@ export class HistoryComponent {
.subscribe(
response => {
if (response.status >= 200 && response.status < 400) {
this.transactions = response.history;
this.transactions = response.json().history;
}
},
error => {
......
......@@ -23,7 +23,7 @@ export class DashboardComponent {
.subscribe(
response => {
if (response.status >= 200 && response.status < 400) {
this.balanceResponse = response
this.balanceResponse = response.json();
this.confirmedBalance = this.balanceResponse.confirmed;
this.unconfirmedBalance = this.balanceResponse.unconfirmed;
}
......
......@@ -23,7 +23,7 @@ export class ReceiveComponent {
.subscribe(
response => {
if (response.status >= 200 && response.status < 400) {
this.addresses = response.addresses;
this.addresses = response.json().addresses;
}
},
error => {
......
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