]> git.cworth.org Git - lmno.games/commitdiff
Track receival of bag_remaining count when joining
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 12:30:36 +0000 (07:30 -0500)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:29:48 +0000 (11:29 -0500)
This was recently added to what the server sends on join

letterrip/letterrip.jsx

index 64cecd42e0fe717c36e1b4cd50a32093ccc10665..c5538b8b6cd9c2830f2ef88f7f495591943dffec 100644 (file)
@@ -369,7 +369,8 @@ class Game extends React.Component {
       this.setState({
         joined: true,
         tiles: tiles,
-        rack: tiles.map((_, i) => i)
+        rack: tiles.map((_, i) => i),
+        bag_remaining: data.remaining
       });
     }
   }