Skip to content

Commit e620559

Browse files
committed
fix edge case app identifier = "" or whitespace
1 parent a4da750 commit e620559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/Thirdweb/Runtime/Unity/ThirdwebManager.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ public class ThirdwebManager : ThirdwebManagerBase
1919

2020
protected override ThirdwebClient CreateClient()
2121
{
22-
if (string.IsNullOrEmpty(ClientId))
22+
if (string.IsNullOrWhiteSpace(ClientId))
2323
{
2424
ThirdwebDebug.LogError("ClientId must be set in order to initialize ThirdwebManager. " + "Get your API key from https://thirdweb.com/create-api-key");
2525
return null;
2626
}
2727

28-
if (string.IsNullOrEmpty(BundleId))
28+
if (string.IsNullOrWhiteSpace(BundleId))
2929
{
3030
BundleId = null;
3131
}
3232

33-
BundleId ??= Application.identifier ?? $"com.{Application.companyName}.{Application.productName}";
33+
BundleId ??= string.IsNullOrWhiteSpace(Application.identifier) ? $"com.{Application.companyName}.{Application.productName}" : Application.identifier;
3434

3535
return ThirdwebClient.Create(
3636
clientId: ClientId,

0 commit comments

Comments
 (0)