Correction du partage de la position pour la joueuse qui n'est pas en course

This commit is contained in:
Emmy D'Anello 2024-12-20 08:07:08 +01:00
parent 1f2bee0b08
commit 105d2aad88
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
"expo": {
"name": "Traintrape-moi",
"slug": "traintrape-moi-client",
"version": "1.1.0",
"version": "1.1.1",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "traintrapemoi",

View File

@ -80,7 +80,7 @@ function PlayerLocationsMarkers({ setDisplayedPlayerId }: { setDisplayedPlayerId
const game = useGame()
const lastPlayerLocations = useLastPlayerLocations()
return lastPlayerLocations ? lastPlayerLocations
.filter(() => game.currentRunner === true || !game.gameStarted)
.filter(() => !game.currentRunner || !game.gameStarted)
.filter(playerLoc => playerLoc.playerId !== game.playerId)
.map(playerLoc => <PlayerLocationMarker key={`player-${playerLoc.playerId}-loc`} playerLocation={playerLoc} setDisplayedPlayerId={setDisplayedPlayerId} />) : <></>
}

View File

@ -1,7 +1,7 @@
{
"name": "traintrape-moi-client",
"main": "expo-router/entry",
"version": "1.1.0",
"version": "1.1.1",
"scripts": {
"start": "expo start",
"android": "expo run:android",

View File

@ -1,6 +1,6 @@
{
"name": "traintrape-moi-server",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"author": "",
"private": true,