Skip to content

Commit

Permalink
- Adjusting YouTube user account log in to validate a channel exists
Browse files Browse the repository at this point in the history
  • Loading branch information
SaviorXTanren committed Sep 8, 2023
1 parent 025fc61 commit 00c7c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MixItUp.Base/Services/YouTube/YouTubeSessionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public async Task<Result> ConnectUser()
Result<YouTubePlatformService> result = await YouTubePlatformService.ConnectUser();
if (result.Success)
{
this.UserConnection = result.Value;
this.User = await this.UserConnection.GetCurrentChannel();
this.User = await result.Value.GetCurrentChannel();
if (this.User == null)
{
return new Result(MixItUp.Base.Resources.YouTubeFailedToGetUserData);
}
this.UserConnection = result.Value;

await this.RefreshChannel();
}
Expand Down

0 comments on commit 00c7c03

Please sign in to comment.