diff --git a/lib/order.js b/lib/order.js index a3f30d6..388fbfb 100644 --- a/lib/order.js +++ b/lib/order.js @@ -423,8 +423,9 @@ class Order extends Model { * @param {WSv2|RESTv2} apiInterface - optional ws defaults to internal ws */ removeListeners (apiInterface = this._apiInterface) { + const cbGID = this.cbGID().replace('null','undefined'); if (apiInterface) { - apiInterface.removeListeners(this.cbGID()) + apiInterface.removeListeners(cbGID) } }