11using System ;
22using System . Collections . Generic ;
3- using AltWebSocketSharp ;
43using Immutable . Marketplace ;
54using UnityEngine ;
65using UnityEngine . SceneManagement ;
@@ -34,7 +33,7 @@ private void Start()
3433 /// </summary>
3534 private void ValidateInputFields ( )
3635 {
37- OpenButton . interactable = ! EmailInput . text . IsNullOrEmpty ( ) && ! AddressInput . text . IsNullOrEmpty ( ) ;
36+ OpenButton . interactable = ! string . IsNullOrEmpty ( EmailInput . text ) && ! string . IsNullOrEmpty ( AddressInput . text ) ;
3837 }
3938
4039 /// <summary>
@@ -53,10 +52,10 @@ public void OpenWidget()
5352 walletAddress : walletAddress ,
5453 queryParams : new OnRampQueryParams
5554 {
56- DefaultFiatCurrency = FiatCurrencyInput . text . IsNullOrEmpty ( ) ? "USD" : FiatCurrencyInput . text ,
57- DefaultFiatAmount = FiatAmountInput . text . IsNullOrEmpty ( ) ? "50" : FiatAmountInput . text ,
58- DefaultCryptoCurrency = CryptoCurrency . text . IsNullOrEmpty ( ) ? "IMX" : CryptoCurrency . text ,
59- CryptoCurrencyList = CryptoCurrencyList . text . IsNullOrEmpty ( ) ? "imx,eth,usdc" : CryptoCurrencyList . text
55+ DefaultFiatCurrency = string . IsNullOrEmpty ( FiatCurrencyInput . text ) ? "USD" : FiatCurrencyInput . text ,
56+ DefaultFiatAmount = string . IsNullOrEmpty ( FiatAmountInput . text ) ? "50" : FiatAmountInput . text ,
57+ DefaultCryptoCurrency = string . IsNullOrEmpty ( CryptoCurrency . text ) ? "IMX" : CryptoCurrency . text ,
58+ CryptoCurrencyList = string . IsNullOrEmpty ( CryptoCurrencyList . text ) ? "imx,eth,usdc" : CryptoCurrencyList . text
6059 } ,
6160 extraQueryParams : new Dictionary < string , string > {
6261 { "themeColor" , "000000" }
0 commit comments