Skip to content
Permalink
Browse files

fix: handle stop watching events if no event listener set

  • Loading branch information...
satello committed May 25, 2018
1 parent 6c5397e commit 0457c563e635f7b68d1159018c43e69e9d900086
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/kleros.js
@@ -127,7 +127,8 @@ class Kleros {
* Stop watching for events on the Arbitrator initialized in the Kleros Instance.
*/
stopWatchingForEvents = () => {
this.eventListener.stopWatchingForEvents(this.arbitrator)
if (this.eventListener)
this.eventListener.stopWatchingForEvents(this.arbitrator)
}

/**

0 comments on commit 0457c56

Please sign in to comment.
You can’t perform that action at this time.