btc: fix issue with channel-js part 2

This commit is contained in:
Isaac Visintainer 2021-04-21 18:39:58 -07:00 committed by ixv
parent e3c20a2901
commit b58fe46fdc

View File

@ -3,7 +3,7 @@ import { store } from './store';
export class Subscription {
start() {
if (api.authTokens) {
if (api.ship) {
this.initializeBtcWallet();
this.initializeCurrencyPoll();
} else {
@ -12,7 +12,8 @@ export class Subscription {
}
initializeBtcWallet() {
api.bind('/all', 'PUT', api.authTokens.ship, 'btc-wallet',
console.log('initialize');
api.bind('/all', 'PUT', api.ship, 'btc-wallet',
this.handleEvent.bind(this),
this.handleError.bind(this));
}