Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
javajohnHub committed Jan 22, 2018
1 parent f689679 commit 532f348
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ export class HomeComponent implements OnInit {
constructor(private _btfgService: BtfgService) { }

ngOnInit() {
if (localStorage.getItem('walletId')) {
this.walletId = localStorage.getItem('walletId');
}
let d = new Date();
this.lastUpdated = d.toLocaleString();
this.reloadData();
Expand All @@ -53,9 +50,7 @@ export class HomeComponent implements OnInit {
reloadData() {
let d = new Date();
this.lastUpdated = d.toLocaleString();
if (!localStorage.getItem('walletId')) {
localStorage.setItem('walletId', this.walletId)
}
localStorage.setItem('walletId', this.walletId)
this.walletData = this._btfgService.getWalletInfo(this.walletId)
.subscribe(data => {
this.walletData = data;
Expand Down

0 comments on commit 532f348

Please sign in to comment.