Skip to content

Commit

Permalink
Update not enough energy notification
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Aug 7, 2024
1 parent 747e1a5 commit a67e536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/extension-koni-ui/src/Popup/Home/Games/gameSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-koni-ui/src/connector/booka/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Omit<BookaAccount, 'token'>>(`${GAME_API_HOST}/api/account/get-attribute`);

Expand Down

0 comments on commit a67e536

Please sign in to comment.