Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
PR review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac committed Nov 21, 2016
1 parent 54e2844 commit ef2c170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/api/contract/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default class Contract {
delete this._subscriptions[subscriptionId];

if (Object.keys(this._subscriptions).length === 0) {
this._unsubscribeToChanges();
this._unsubscribeFromChanges();
}
})
.catch((error) => {
Expand All @@ -358,7 +358,7 @@ export default class Contract {
this._sendSubscriptionChanges();
}

_unsubscribeToChanges = () => {
_unsubscribeFromChanges = () => {
this._subscribedToChanges = false;
clearTimeout(this._subscribedToChangesId);
}
Expand Down

0 comments on commit ef2c170

Please sign in to comment.