Skip to content

Commit

Permalink
Activating a game does not publish MQTT message
Browse files Browse the repository at this point in the history
Fixes #295
  • Loading branch information
andrew-codes committed May 9, 2024
1 parent 4f28521 commit 4995c8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/playnite-web/src/components/GameDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const GameDetails: FC<{ game: IGame }> = ({ game }) => {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
credentials: 'same-origin',
body: new URLSearchParams({
id: game.id,
platformId: sortGameActionPlatforms(game.platforms)[selectedIndex].id,
Expand Down Expand Up @@ -111,7 +112,7 @@ const GameDetails: FC<{ game: IGame }> = ({ game }) => {
color="primary"
aria-label="Platforms in which to play the game"
>
<Button onClick={handlePlay}>
<Button onClick={handlePlay(selectedIndex)}>
{platformOptions[selectedIndex]}
</Button>
<Button
Expand Down

0 comments on commit 4995c8b

Please sign in to comment.