Skip to content

Commit fc1a253

Browse files
Mikkel Sørensenkristijan-ujevic
authored andcommitted
Use the Platforms enum instead of a string comparison and throw a better written error message.
1 parent b0289a0 commit fc1a253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ public static void SetPlayerName(string name, Action<PlayerNameResponse> onCompl
14181418

14191419
if (name.Contains(PlayerPrefs.GetString("LootLockerGuestPlayerID"), StringComparison.OrdinalIgnoreCase) && CurrentPlatform.Get() == Platforms.Guest)
14201420
{
1421-
onComplete?.Invoke(LootLockerResponseFactory.Error<PlayerNameResponse>(": Setting the Player name to the Identifier is not allowed"));
1421+
onComplete?.Invoke(LootLockerResponseFactory.Error<PlayerNameResponse>("Setting the Player name to the Identifier is not allowed"));
14221422
return;
14231423
}
14241424

0 commit comments

Comments
 (0)