Skip to content

Commit

Permalink
fix destroy & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kewde committed Jan 21, 2018
1 parent 021b364 commit 1a73938
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class StakinginfoComponent implements OnDestroy {
this.calculateDynamicStakingReward();
},
error => this.log.er('Constructor, weight error:' + error),
() => this.log.d("state observe weight completed!"));
() => this.log.d('state observe weight completed!'));

this.state.observe('netstakeweight')
.takeWhile(() => !this.destroyed)
Expand Down Expand Up @@ -93,7 +93,7 @@ export class StakinginfoComponent implements OnDestroy {
}

ngOnDestroy() {
// this.destroyed = true;
this.destroyed = true;

This comment has been minimized.

Copy link
@rynomster

rynomster Jan 21, 2018

Member

Why not unsubscribe?

This comment has been minimized.

Copy link
@kewde

kewde Jan 21, 2018

Author Collaborator

@rynomster I was testing a few more things, but it should unsubsribe with destroy = true uncommented now

}

}

0 comments on commit 1a73938

Please sign in to comment.