]> git.cworth.org Git - lmno.games/commitdiff
Leave the "Some words are not valid" text up whenever it is relevant
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 13:34:51 +0000 (08:34 -0500)
committerCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 16:29:48 +0000 (11:29 -0500)
Prior to this commit, this message was disappearing when the last tile
was removed from the rack, but there's no reason for that. The message
depends only on the state of the board, not whether there are tiles
on the rack or not.

letterrip/letterrip.jsx

index f52463652389222f568100fc0f1de5c5f0f38606..06d2c1544efafb9278ac767f92c88d17114b56d9 100644 (file)
@@ -739,7 +739,7 @@ class Game extends React.Component {
         />
       ) : null,
 
-      state.joined && state.rack.length > 0 && Object.keys(state.grid).length > 0 ? (
+      state.joined && Object.keys(state.grid).length > 0 && !can_complete ? (
         <div key="status" className="status">
           {!analysis.all_valid ? "Some words are not valid." :
            !analysis.all_connected ? "All tiles must be connected." :