Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f7b411c

Browse files
Using ToProperty instead of Subscribe
1 parent 799e241 commit f7b411c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/ViewModels/CommentViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected CommentViewModel(
6565
x => x.EditState,
6666
x => x == CommentEditState.None && user.Login.Equals(currentUser.Login));
6767

68-
canDelete.Subscribe(b => CanDelete = b);
68+
canDelete.ToProperty(this, x => x.CanDelete);
6969

7070
Delete = ReactiveCommand.CreateAsyncTask(canDelete, DoDelete);
7171

0 commit comments

Comments
 (0)