Skip to content

Commit 3437abb

Browse files
committed
feat: code refractored
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 618d524 commit 3437abb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/Plugins/Web3AuthSDK/Api/WhiteLabelDataExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ private static Dictionary<string, string> mergeThemes(Dictionary<string, string>
3030
return otherTheme;
3131

3232
var mergedTheme = new Dictionary<string, string>(targetTheme);
33+
foreach (var kvp in targetTheme)
34+
{
35+
mergedTheme[kvp.Key] = kvp.Value;
36+
}
3337
foreach (var kvp in otherTheme)
3438
{
35-
if (mergedTheme.ContainsKey(kvp.Key))
36-
{
37-
mergedTheme[kvp.Key] = kvp.Value; // Overwrite with otherTheme's value
38-
}
39-
else
39+
if (!mergedTheme.ContainsKey(kvp.Key))
4040
{
4141
mergedTheme.Add(kvp.Key, kvp.Value);
4242
}

Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ void Start()
8080
{"CUSTOM_VERIFIER", loginConfigItem}
8181
}
8282
*/
83-
clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ",
83+
clientId = "BFuUqebV5I8Pz5F7a5A2ihW7YVmbv_OHXnHYDv6OltAD5NGr6e-ViNvde3U4BHdn6HvwfkgobhVu4VwC-OSJkik",
8484
buildEnv = BuildEnv.TESTING,
8585
redirectUrl = new Uri("torusapp://com.torus.Web3AuthUnity/auth"),
86-
network = Web3Auth.Network.SAPPHIRE_MAINNET,
86+
network = Web3Auth.Network.SAPPHIRE_DEVNET,
8787
sessionTime = 86400
8888
});
8989
web3Auth.onLogin += onLogin;

0 commit comments

Comments
 (0)