Skip to content

Commit

Permalink
add nonetworkmode guard (#14783)
Browse files Browse the repository at this point in the history
  • Loading branch information
aparajit-pratap authored Dec 20, 2023
1 parent f34c28f commit 8f48253
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ internal PackageManagerClientViewModel(DynamoViewModel dynamoViewModel, PackageM
};
}

if (AuthenticationManager.LoginState.Equals(LoginState.LoggedIn))
if (AuthenticationManager.LoginState.Equals(LoginState.LoggedIn) && !dynamoViewModel.Model.NoNetworkMode)
{
this.Uservotes = this.Model.UserVotes();
Uservotes = Model.UserVotes();
}
}

Expand Down

0 comments on commit 8f48253

Please sign in to comment.