Skip to content

Commit

Permalink
Update logic game point
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed May 27, 2024
1 parent e26f155 commit 0dfa84a
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -95,7 +95,7 @@ export class GameApp {
const account = this.apiSDK.account;
const playerId = `${account?.info?.telegramUsername || 'player1'}-${account?.info.id || 0}`;
const gameData = (account?.gameData || []).find((item) => item.gameId === this.currentGameInfo.id);
const point = gameData?.point || account?.attributes?.point || 0;
const point = gameData?.point || 0;

const player: Player = {
id: playerId,
Expand Down

0 comments on commit 0dfa84a

Please sign in to comment.