Skip to content

Commit

Permalink
[SDK-901] Feature/wizard signup fix (#275)
Browse files Browse the repository at this point in the history
- remove duplicate call of signup function
- cleanup unused property
  • Loading branch information
HarrisonHough authored May 20, 2024
1 parent 7802503 commit db5b0e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Runtime/AvatarCreator/Scripts/Managers/AuthManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using ReadyPlayerMe.Core;

Expand Down Expand Up @@ -70,7 +70,7 @@ public static async Task<bool> LoginWithCode(string otp, string userIdToMerge =

public static async void Signup(string email)
{
try
try
{
await AuthAPIRequests.Signup(email, userSession.Id);
}
Expand Down
1 change: 0 additions & 1 deletion Runtime/Core/Scripts/Utils/WebRequestDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public enum HttpMethod
public class WebRequestDispatcher
{
private const string REQUEST_CANCEL_ERROR = "Request was cancelled";
private const string APP_ID = "X-APP-ID";
public int Timeout = 240;

public Action<float> ProgressChanged;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ private void Start()
public override void ActivateState()
{
saveButton.onClick.AddListener(OnSaveButton);
signupElement.OnSendEmail.AddListener(OnSendEmail);
signupElement.OnContinueWithoutSignup.AddListener(Save);
categoryUICreator.OnCategorySelected += OnCategorySelected;
Setup();
Expand All @@ -52,7 +51,6 @@ public override void ActivateState()
public override void DeactivateState()
{
saveButton.onClick.RemoveListener(OnSaveButton);
signupElement.OnSendEmail.RemoveListener(OnSendEmail);
signupElement.OnContinueWithoutSignup.RemoveListener(Save);
categoryUICreator.OnCategorySelected -= OnCategorySelected;
Cleanup();
Expand Down Expand Up @@ -252,7 +250,6 @@ private void OnSaveButton()

private void OnSendEmail(string email)
{
AuthManager.Signup(email);
Save();
}

Expand Down

0 comments on commit db5b0e0

Please sign in to comment.