From cf41ecb7480c8464d18eb29bb29918f394b2282f Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Mon, 8 Sep 2025 10:47:21 +0200 Subject: [PATCH] fix: use ternary operator to resolve bug on winner list page --- composer.json | 2 +- resources/views/pages/winners-list/index-list.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d3f76f2..cd70d77 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "uwil/gen-game-web", - "version": "3.1.4", + "version": "3.1.5", "type": "project", "description": "Game generator", "support": { diff --git a/resources/views/pages/winners-list/index-list.blade.php b/resources/views/pages/winners-list/index-list.blade.php index 3696ea8..e89c616 100644 --- a/resources/views/pages/winners-list/index-list.blade.php +++ b/resources/views/pages/winners-list/index-list.blade.php @@ -48,7 +48,7 @@ @endif @if ($settingsGlobal->code_type->equals($codeTypeEnum::unique) || $settingsGlobal->code_type->equals($codeTypeEnum::both)) - {{ \App\Models\Code::intToSerial($participationModel->code_unique_id)}} + {{ is_null($participationModel->code_unique_id) ? 'Aucun' : \App\Models\Code::intToSerial($participationModel->code_unique_id) }} @endif