Skip to content

Commit

Permalink
fix: layer wallet get hwAddresses not appending on 2nd fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jan 9, 2024
1 parent 2814835 commit f56344c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion layer/icons/square.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
:
<template>
<svg
width="6"
Expand Down
4 changes: 1 addition & 3 deletions layer/store/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ export const useSharedWalletStore = defineStore('sharedWallet', {

const addresses = await getAddresses()

console.log({ wallet, addresses, isEth: isEthWallet(wallet) })

const injectiveAddresses = isEthWallet(wallet)
? addresses.map(getInjectiveAddress)
: addresses
Expand All @@ -201,7 +199,7 @@ export const useSharedWalletStore = defineStore('sharedWallet', {
: addresses

walletStore.$patch({
hwAddresses: [...walletStore.addresses, ...injectiveAddresses]
hwAddresses: [...walletStore.hwAddresses, ...injectiveAddresses]
})
}
},
Expand Down

0 comments on commit f56344c

Please sign in to comment.