Skip to content

Commit 219249e

Browse files
committed
minor
1 parent b31555d commit 219249e

File tree

1 file changed

+4
-6
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+4
-6
lines changed

services/static-webserver/client/source/class/osparc/store/Store.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)