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
commit e983b21e07
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
7 changed files with 48 additions and 19 deletions

View file

@ -18,7 +18,7 @@
<div
class="text-white font-bold bg-deep-blue-contrast rounded-full px-4 py-2 text-sm hover:bg-deep-blue-contrast/80 hover:cursor-pointer hover:scale-105 transition-all active:scale-95 select-none duration-300"
>
<span>Guthaben: {{ balance() | currency: 'EUR' : 'symbol' : '1.2-2' }}</span>
<span>{{ balance() | currency: 'EUR' : 'symbol' : '1.2-2' }}</span>
</div>
<button (click)="logout()" class="button-primary px-4 py-1.5">Abmelden</button>
}