From 0425424bba1994944757b24e3aa7d70fdb8f7441 Mon Sep 17 00:00:00 2001 From: Iveta Date: Wed, 5 Aug 2020 12:50:12 -0400 Subject: [PATCH] Fix watchPayments stopper (#169) --- CHANGELOG.md | 1 + package.json | 2 +- src/data/DataProvider.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90533fa5..8af7f97d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - [KeyManager] Added Trezor wallet. - [KeyManager] Only sign SEP-10 auth transactions with seq number 0. +- [DataProvider] Fix `watchPayments` stopper. ## [v0.1.0-rc.1](https://github.com/stellar/js-stellar-wallets/compare/v0.0.9-rc.1...v0.1.0-rc.1) diff --git a/package.json b/package.json index 6b867f95..43708a18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stellar/wallet-sdk", - "version": "0.1.0-rc.8", + "version": "0.1.0-rc.9", "description": "Libraries to help you write Stellar-enabled wallets in Javascript", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/data/DataProvider.ts b/src/data/DataProvider.ts index a2382c12..3355c246 100644 --- a/src/data/DataProvider.ts +++ b/src/data/DataProvider.ts @@ -327,8 +327,8 @@ export class DataProvider { clearTimeout(this._watcherTimeouts.watchPayments); } - delete this.callbacks.accountDetails; - delete this.errorHandlers.accountDetails; + delete this.callbacks.payments; + delete this.errorHandlers.payments; }; }