@ecency/wallets 1.4.23 → 1.4.24

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.
@@ -3704,15 +3704,29 @@ function useWalletOperation(username, asset, operation) {
3704
3704
  },
3705
3705
  onSuccess: () => {
3706
3706
  recordActivity();
3707
- const query = getAccountWalletAssetInfoQueryOptions(username, asset, {
3708
- refetch: true
3707
+ const assetsToRefresh = /* @__PURE__ */ new Set([asset]);
3708
+ if (asset === "HIVE") {
3709
+ assetsToRefresh.add("HP");
3710
+ assetsToRefresh.add("HIVE");
3711
+ }
3712
+ if (asset === "HBD") {
3713
+ assetsToRefresh.add("HBD");
3714
+ }
3715
+ if (asset === "LARYNX" && operation === "power-up" /* PowerUp */) {
3716
+ assetsToRefresh.add("LP");
3717
+ assetsToRefresh.add("LARYNX");
3718
+ }
3719
+ assetsToRefresh.forEach((symbol) => {
3720
+ const query = getAccountWalletAssetInfoQueryOptions(username, symbol, {
3721
+ refetch: true
3722
+ });
3723
+ setTimeout(
3724
+ () => sdk.getQueryClient().invalidateQueries({
3725
+ queryKey: query.queryKey
3726
+ }),
3727
+ 5e3
3728
+ );
3709
3729
  });
3710
- setTimeout(
3711
- () => sdk.getQueryClient().invalidateQueries({
3712
- queryKey: query.queryKey
3713
- }),
3714
- 5e3
3715
- );
3716
3730
  }
3717
3731
  });
3718
3732
  }