Skip to content

Commit ef82925

Browse files
Merge pull request #89 from CodebreakerApp/85-infomessageviewmodelhasaction-always-returns-true
Fixed HasAction property
2 parents 5d527f1 + ca513b2 commit ef82925

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Codebreaker.ViewModels/Components/InfoMessageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public partial class InfoMessageViewModel(Action closeAction) : ObservableObject
3131
[NotifyPropertyChangedFor(nameof(HasAction))]
3232
private string? _actionText = "OK";
3333

34-
public bool HasAction => ExecuteActionCommand is not null && ActionText is not null;
34+
public bool HasAction => Action is not null && ActionText is not null;
3535

3636
[ObservableProperty]
3737
[NotifyCanExecuteChangedFor(nameof(CloseCommand))]

0 commit comments

Comments
 (0)