Commit d6de1a0f authored by dev0tion's avatar dev0tion

Convert data to json format

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