Skip to content

Commit

Permalink
Merge pull request #156 from nautls/fix-wallet-creation
Browse files Browse the repository at this point in the history
Fix wallet creation
  • Loading branch information
arobsn authored Jul 7, 2024
2 parents 3b8229d + 6022d1a commit cd39216
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/store.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createStore } from "vuex";
import { BigNumber } from "bignumber.js";
import { clone, difference, groupBy, maxBy, sortBy, take, union } from "lodash-es";
import { clone, difference, groupBy, last, maxBy, sortBy, take, union } from "lodash-es";
import AES from "crypto-js/aes";
import { hex } from "@fleet-sdk/crypto";
import { first, isEmpty, last, some, uniq } from "@fleet-sdk/common";
import { first, isEmpty, some, uniq } from "@fleet-sdk/common";
import { connectedDAppsDbService } from "./database/connectedDAppsDbService";
import { utxosDbService } from "./database/utxosDbService";
import { MIN_UTXO_SPENT_CHECK_TIME, UPDATE_TOKENS_BLACKLIST_INTERVAL } from "./constants/intervals";
Expand Down Expand Up @@ -510,9 +510,7 @@ export default createStore({
});
},
async [ACTIONS.REFRESH_CURRENT_ADDRESSES]({ state, commit, dispatch }) {
if (!state.currentWallet.id) {
return;
}
if (!state.currentWallet.id) return;

const walletId = state.currentWallet.id;
const pk = state.currentWallet.publicKey;
Expand Down

0 comments on commit cd39216

Please sign in to comment.