s/Bets 0/Checks
authorGeoffrey Allott <geoffrey@allott.email>
Wed, 24 May 2023 21:26:51 +0000 (22:26 +0100)
committerGeoffrey Allott <geoffrey@allott.email>
Wed, 24 May 2023 21:26:51 +0000 (22:26 +0100)
site/modules/chatroom.js

index a111e1f934acb4ada3b11f356d6f778ecf6398ca..c9f729934584d9c5cfea8dfbad985754e78bec36 100644 (file)
@@ -68,7 +68,8 @@ export class Chatroom {
                 }
                 break;
             case "Bet":
-                this.chat.append(this.info_element(user_action.username, "Bets " + user_action.action.chips));
+                const text = user_action.action.chips === 0 ? "Checks" : "Bets " + user_action.action.chips;
+                this.chat.append(this.info_element(user_action.username, text));
                 break;
             case "Fold":
                 this.chat.append(this.info_element(user_action.username, "Folds"));