Skip to content

Commit

Permalink
fix wallet creation
Browse files Browse the repository at this point in the history
  • Loading branch information
arobsn committed Jul 7, 2024
1 parent 3b8229d commit 6022d1a
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 6022d1a

Please sign in to comment.