zkayser / pokerex_client

Elm client for PokerEx project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate number of chips on `add_chips` call from Room page

zkayser opened this issue · comments

When a user inserts a negative number for the number of chips to add from the Bank toolbar button on the Room page, it triggers an error on the server. This validation can and should be done on both the client and the server. The client can validate and prevent users from sending negative chips, while the server can ensure that no negative amounts get through.

[12/30] DONE