Skip to content

Commit 27a95e9

Browse files
MVVMTK0034 - don't use ObservableProperty fields
1 parent a714694 commit 27a95e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/clients/xaml/CodeBreaker.ViewModels/Pages/GamePageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public GameDto? Game
108108
[ObservableProperty]
109109
private bool _isCancelling = false;
110110

111-
public bool IsNameEnterable => !InProgress && !_isNamePredefined;
111+
public bool IsNameEnterable => !InProgress && !IsNamePredefined;
112112

113113
[RelayCommand(AllowConcurrentExecutions = false, FlowExceptionsToTaskScheduler = true)]
114114
private async Task StartGameAsync()
@@ -118,7 +118,7 @@ private async Task StartGameAsync()
118118
InitializeValues();
119119

120120
InProgress = true;
121-
CreateGameResponse response = await _client.StartGameAsync(_name, "6x4Game");
121+
CreateGameResponse response = await _client.StartGameAsync(Name, "6x4Game");
122122

123123
GameStatus = GameMode.Started;
124124

0 commit comments

Comments
 (0)