File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Assets/Plugins/Web3AuthSDK Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class WhitelistResponse
88
99public class ProjectConfigResponse
1010{
11- public WhiteLabelData whiteLabel { get ; set ; }
11+ public WhiteLabelData whitelabel { get ; set ; }
1212 public bool sms_otp_enabled { get ; set ; }
1313 public bool wallet_connect_enabled { get ; set ; }
1414 public string wallet_connect_project_id { get ; set ; }
Original file line number Diff line number Diff line change @@ -658,11 +658,18 @@ private void fetchProjectConfig()
658658 if ( response != null )
659659 {
660660 this . web3AuthOptions . originData = this . web3AuthOptions . originData . mergeMaps ( response . whitelist ? . signed_urls ) ;
661- if ( response ? . whiteLabel != null )
661+ if ( response ? . whitelabel != null )
662662 {
663- this . web3AuthOptions . whiteLabel = this . web3AuthOptions . whiteLabel ? . merge ( response . whiteLabel ) ;
663+ if ( this . web3AuthOptions . whiteLabel == null )
664+ {
665+ this . web3AuthOptions . whiteLabel = response . whitelabel ;
666+ }
667+ else
668+ {
669+ this . web3AuthOptions . whiteLabel = this . web3AuthOptions . whiteLabel ? . merge ( response . whitelabel ) ;
670+ }
664671 }
665- // Debug.Log("this.web3AuthOptions: =>" + JsonConvert.SerializeObject(this.web3AuthOptions));
672+ Debug . Log ( "this.web3AuthOptions: =>" + JsonConvert . SerializeObject ( this . web3AuthOptions ) ) ;
666673
667674 JsonSerializerSettings settings = new JsonSerializerSettings
668675 {
You can’t perform that action at this time.
0 commit comments