@visualizevalue/mint-app-base 0.2.0 → 0.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -151,7 +151,9 @@ export async function rpcFetchProfile (
151
151
  wagmi: Config,
152
152
  address: `0x${string}`,
153
153
  ): Promise<Partial<Artist>> {
154
- const client = getPublicClient(wagmi, { chainId: 1 }) as PublicClient
154
+ const client = getPublicClient(wagmi, { chainId: 1 })
155
+ if (!client) return {}
156
+
155
157
  const block = await client.getBlockNumber()
156
158
 
157
159
  let ens, avatar, description, url, email, twitter, github