Skip to content

Commit

Permalink
Fix user session on playAgain
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhutoanton committed Sep 21, 2023
1 parent 840211c commit 685692a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk/src/GameSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export class GamesSDK {
modal.close();
this.showLeaderboard({
onPlayAgain: async (close?: () => void) => {
this.startSession(); // Create and store game session in background
await onPlayAgain?.();
close?.();
},
Expand Down

0 comments on commit 685692a

Please sign in to comment.