Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Update AskForValidation.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
tlegoc committed Oct 9, 2022
1 parent f99058b commit e72ad66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Player/AskForValidation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//Si l'utilisateur a mal choisi, envoie la requète pour sa team
if (selected_player.isTeam != selected_defi.teamOnly) {
selected_player = players.filter(
(player) => player.name == selected_player.teamId
(player) => player.id == selected_player.teamId
)[0];
}
Expand All @@ -47,6 +47,7 @@
selected_player = players.filter(
(player) => player.name == selected_player_name
)[0];
console.log(selected_player);
//Same for the defi
selected_defi = defis.filter(
(player) => player.name == selected_defi_name
Expand Down

0 comments on commit e72ad66

Please sign in to comment.