@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.js CHANGED
@@ -4804,7 +4804,7 @@ var AddressDisplay = ({
4804
4804
 
4805
4805
  // package.json
4806
4806
  var package_default = {
4807
- version: "1.8.3"};
4807
+ version: "1.8.4"};
4808
4808
  var VersionFooter = ({ ...props }) => {
4809
4809
  const { darkMode: isDark } = useVeChainKitConfig();
4810
4810
  return /* @__PURE__ */ jsxs(
@@ -15201,14 +15201,22 @@ var CustomizationSummaryContent = ({
15201
15201
  });
15202
15202
  };
15203
15203
  const refresh = async () => {
15204
- queryClient.setQueryData(
15205
- getAvatarQueryKey(domain, network.type),
15206
- convertUriToUrl("ipfs://" + changes.avatarIpfsHash, network.type)
15207
- );
15208
- queryClient.setQueryData(
15209
- getAvatarOfAddressQueryKey(account?.address ?? ""),
15210
- convertUriToUrl("ipfs://" + changes.avatarIpfsHash, network.type)
15211
- );
15204
+ if (changes.avatarIpfsHash) {
15205
+ queryClient.setQueryData(
15206
+ getAvatarQueryKey(domain, network.type),
15207
+ convertUriToUrl(
15208
+ "ipfs://" + changes.avatarIpfsHash,
15209
+ network.type
15210
+ )
15211
+ );
15212
+ queryClient.setQueryData(
15213
+ getAvatarOfAddressQueryKey(account?.address ?? ""),
15214
+ convertUriToUrl(
15215
+ "ipfs://" + changes.avatarIpfsHash,
15216
+ network.type
15217
+ )
15218
+ );
15219
+ }
15212
15220
  await queryClient.invalidateQueries({
15213
15221
  queryKey: getTextRecordsQueryKey(domain, network.type)
15214
15222
  });