From a67e536e2f46c51151ca1f142def6df0f3b11f8f Mon Sep 17 00:00:00 2001 From: AnhMTV Date: Wed, 7 Aug 2024 23:09:33 +0700 Subject: [PATCH] Update not enough energy notification --- packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts | 2 +- packages/extension-koni-ui/src/connector/booka/sdk.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts b/packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts index 919f3ba0cd..b31c503a46 100644 --- a/packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts +++ b/packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts @@ -321,7 +321,7 @@ export class GameApp { try { await this.onPlay(); - this.onGetPlayer().catch(console.error); + this.apiSDK.reloadAccount().catch(console.error); this.gameStateHandler.resolve(state || {} as GameState); } catch (e) { diff --git a/packages/extension-koni-ui/src/connector/booka/sdk.ts b/packages/extension-koni-ui/src/connector/booka/sdk.ts index f38923c294..e1d2c11a2a 100644 --- a/packages/extension-koni-ui/src/connector/booka/sdk.ts +++ b/packages/extension-koni-ui/src/connector/booka/sdk.ts @@ -199,7 +199,7 @@ export class BookaSdk { return await response.json() as T; } - private async reloadAccount () { + async reloadAccount () { const account = this.account; const newAccountData = await this.getRequest>(`${GAME_API_HOST}/api/account/get-attribute`);