diff --git a/packages/extension-koni-ui/src/connector/booka/sdk.ts b/packages/extension-koni-ui/src/connector/booka/sdk.ts index 74d923c2d3..d99a75f3cb 100644 --- a/packages/extension-koni-ui/src/connector/booka/sdk.ts +++ b/packages/extension-koni-ui/src/connector/booka/sdk.ts @@ -10,7 +10,7 @@ import { signRaw } from '@subwallet/extension-koni-ui/messaging'; import fetch from 'cross-fetch'; import { BehaviorSubject } from 'rxjs'; -export const GAME_API_HOST = process.env.GAME_API_HOST || 'https://game-api.anhmtv.xyz'; +export const GAME_API_HOST = process.env.GAME_API_HOST || 'http://localhost:3001'; export const TELEGRAM_WEBAPP_LINK = process.env.TELEGRAM_WEBAPP_LINK || 'BookaGamesBot/swbooka'; const storage = SWStorage.instance; const telegramConnector = TelegramConnector.instance; @@ -34,8 +34,8 @@ export class BookaSdk { private referralListSubject = new BehaviorSubject([]); private gameItemMapSubject = new BehaviorSubject>({}); private gameInventoryItemListSubject = new BehaviorSubject([]); - private gameInventoryItemInGame = new BehaviorSubject([]); - private gameItemInGame = new BehaviorSubject([]);; + private gameInventoryItemInGame = new BehaviorSubject({}); + private gameItemInGame = new BehaviorSubject>>({});; private energyConfigSubject = new BehaviorSubject(undefined); constructor () { @@ -121,7 +121,6 @@ export class BookaSdk { } public get gameItemInGameList() { - console.log(this.gameItemInGame.value) return this.gameItemInGame.value; }