File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -385,12 +385,10 @@ qx.Class.define("osparc.store.Store", {
385385 } ,
386386
387387 __applyWallets : function ( wallets ) {
388- console . log ( "wallets" , wallets ) ;
389-
390388 const preferenceSettings = osparc . Preferences . getInstance ( ) ;
391- const defaultWalletId = preferenceSettings . getPreferredWalletId ( ) ;
389+ const preferenceWalletId = preferenceSettings . getPreferredWalletId ( ) ;
392390 if (
393- ( defaultWalletId === null || osparc . desktop . credits . Utils . getWallet ( defaultWalletId ) === null ) &&
391+ ( preferenceWalletId === null || osparc . desktop . credits . Utils . getWallet ( preferenceWalletId ) === null ) &&
394392 wallets . length
395393 ) {
396394 // If there is no default wallet set in preferences or the default wallet is not available anymore:
@@ -403,8 +401,8 @@ qx.Class.define("osparc.store.Store", {
403401 // otherwise select the first wallet available
404402 preferenceSettings . requestChangePreferredWalletId ( wallets [ 0 ] . getWalletId ( ) ) ;
405403 }
406- } else if ( defaultWalletId ) {
407- const walletFound = wallets . find ( wallet => wallet . getWalletId ( ) === defaultWalletId ) ;
404+ } else if ( preferenceWalletId ) {
405+ const walletFound = wallets . find ( wallet => wallet . getWalletId ( ) === preferenceWalletId ) ;
408406 if ( walletFound ) {
409407 this . setPreferredWallet ( walletFound ) ;
410408 }
You can’t perform that action at this time.
0 commit comments