Fixed condition to display if a prize has been won or not

This commit is contained in:
noah.lancien 2024-01-04 14:04:46 +00:00 • committed by Vincent BRIDIER
parent 311dda7b6a
commit ba418c5edf
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "uwil/gen-game-web",
"version": "2.1.0",
"version": "2.1.1",
"type": "project",
"description": "Game generator",
"support": {
@ -102,4 +102,4 @@
},
"minimum-stability": "stable",
"prefer-stable": true
}
}

View file

@ -67,7 +67,7 @@
{{ (item.prize as LaravelModel).label }}
</td>
<td class="text-center align-middle">
{{ item.won === false ? __('Non') : __('Oui') }}
{{ item.participation_id === null ? __('Non') : __('Oui') }}
</td>
</tr>
</tbody>
@ -91,6 +91,7 @@ export default defineComponent({
data = JSON.parse(json);
this.datas = data.instantwin;
console.log(this.datas);
this.cangenerate = data.cangenerate ? true : false;
// Create text for clipboard.
this.clipboard = this.__("Voici la liste des instants gagnants :\u{00A0}");