@visualizevalue/mint-app-base 0.1.108 → 0.1.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,16 +154,12 @@ export const useOnchainStore = () => {
154
154
  args: [artist],
155
155
  chainId,
156
156
  })).map((a: `0x${string}`) => a.toLowerCase() as `0x${string}`)
157
-
158
- if (this.artists[artist].collections.length === collectionAddresses.length) {
159
- console.info(`Collections fetched already (${collectionAddresses.length} collections)`)
160
- return
161
- }
157
+ .filter((a: `0x${string}`) => !this.artists[artist].collections.includes(a))
162
158
 
163
159
  try {
164
160
  await Promise.all(collectionAddresses.map(address => this.fetchCollection(address)))
165
161
 
166
- this.artists[artist].collections = collectionAddresses
162
+ this.artists[artist].collections = Array.from(new Set([...this.artists[artist].collections, ...collectionAddresses]))
167
163
  } catch (e) {
168
164
  console.error(e)
169
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.108",
3
+ "version": "0.1.110",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {