@vechain/vechain-kit 1.8.3 → 1.8.4

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/dist/index.cjs CHANGED
@@ -4810,7 +4810,7 @@ var AddressDisplay = ({
4810
4810
 
4811
4811
  // package.json
4812
4812
  var package_default = {
4813
- version: "1.8.3"};
4813
+ version: "1.8.4"};
4814
4814
  var VersionFooter = ({ ...props }) => {
4815
4815
  const { darkMode: isDark } = useVeChainKitConfig();
4816
4816
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -15207,14 +15207,22 @@ var CustomizationSummaryContent = ({
15207
15207
  });
15208
15208
  };
15209
15209
  const refresh = async () => {
15210
- queryClient.setQueryData(
15211
- getAvatarQueryKey(domain, network.type),
15212
- chunkZZOAVX47_cjs.convertUriToUrl("ipfs://" + changes.avatarIpfsHash, network.type)
15213
- );
15214
- queryClient.setQueryData(
15215
- getAvatarOfAddressQueryKey(account?.address ?? ""),
15216
- chunkZZOAVX47_cjs.convertUriToUrl("ipfs://" + changes.avatarIpfsHash, network.type)
15217
- );
15210
+ if (changes.avatarIpfsHash) {
15211
+ queryClient.setQueryData(
15212
+ getAvatarQueryKey(domain, network.type),
15213
+ chunkZZOAVX47_cjs.convertUriToUrl(
15214
+ "ipfs://" + changes.avatarIpfsHash,
15215
+ network.type
15216
+ )
15217
+ );
15218
+ queryClient.setQueryData(
15219
+ getAvatarOfAddressQueryKey(account?.address ?? ""),
15220
+ chunkZZOAVX47_cjs.convertUriToUrl(
15221
+ "ipfs://" + changes.avatarIpfsHash,
15222
+ network.type
15223
+ )
15224
+ );
15225
+ }
15218
15226
  await queryClient.invalidateQueries({
15219
15227
  queryKey: getTextRecordsQueryKey(domain, network.type)
15220
15228
  });