diff --git a/Assets/Scripts/PropositionHandler.cs b/Assets/Scripts/PropositionHandler.cs index c1a0457..7d296e5 100644 --- a/Assets/Scripts/PropositionHandler.cs +++ b/Assets/Scripts/PropositionHandler.cs @@ -25,7 +25,7 @@ public void ShowPlayersProposition(Question currentQuestion) for (int i = 0; i < 2; i++) { int index = i; // Capture la valeur de i pour cette itération - if(props[i].photoUrl == null) + if(string.IsNullOrEmpty(props[i].photoUrl)) { Debug.Log("One player did not send a proposition !", this); btns[index].sprite = defaultImage; // Utilise l'index local au lieu de i