You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 5-blazor/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -390,7 +390,7 @@ Let's add some error handling and indicators to our board to make the current st
390
390
```
391
391
392
392
- The `CurrentTurn` property is automatically calculated based on the state of the `winnerMessage` and the `PlayerTurn` property of the `GameState`.
393
-
- The `ResetStyle` is calculated based on contents of the `WinnerMessage`. If there'sa `winnerMessage`, we make the reset button appear on screen.
393
+
- The `ResetStyle` is calculated based on contents of the `winnerMessage`. If there'sa `winnerMessage`, we make the reset button appear on screen.
394
394
395
395
1. Let's handle the error message when a piece is played. Add aline to clear the error message and then wrap the code in the `PlayPiece` method with a `try...catch` block to set the `errorMessage` if an exception occurred:
0 commit comments