Commit 1048e04
fix(zen-mode): restore input history and watch replay (@byseif21) (monkeytypegame#6863)
### Description
fix:
* The result “input history” panel sometimes rendered nothing because
the renderer attempted to split an undefined target word.
added split word ?? "" to handle missing target words in zen.
* The replay view in zen mode could be empty if the last word was just
submitted (so input.current was empty at finish), and the replay words
list never got updated.
---------
Co-authored-by: Miodec <[email protected]>1 parent 59a6004 commit 1048e04
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | | - | |
| 1282 | + | |
| 1283 | + | |
1283 | 1284 | | |
1284 | 1285 | | |
1285 | 1286 | | |
| |||
1297 | 1298 | | |
1298 | 1299 | | |
1299 | 1300 | | |
1300 | | - | |
| 1301 | + | |
1301 | 1302 | | |
1302 | 1303 | | |
1303 | 1304 | | |
| |||
0 commit comments