feat(blackjack): refresh user balance on game state change

This commit is contained in:
Jan-Marlon Leibl 2025-04-02 10:25:43 +02:00
parent 08b12d238e
commit e983b21e07
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
7 changed files with 48 additions and 19 deletions

View file

@ -18,10 +18,6 @@ import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angula
<div class="card p-4">
<h3 class="section-heading text-xl mb-4">Spiel Informationen</h3>
<div class="space-y-4">
<div class="flex justify-between items-center">
<span class="text-text-secondary">Guthaben:</span>
<span class="text-emerald">{{ balance | currency: 'EUR' }}</span>
</div>
<div class="flex justify-between items-center">
<span class="text-text-secondary">Aktuelle Wette:</span>
<span [class]="currentBet > 0 ? 'text-accent-red' : 'text-text-secondary'">