@kimafinance/kima-transaction-widget 1.4.0 → 1.4.2

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
@@ -2585,7 +2585,12 @@ function useBalance() {
2585
2585
  const userAddress = mode === "light" /* light */ ? lightDemoAccounts.EVM : walletAddress;
2586
2586
  const enabled = !!userAddress && !!tokenOptions && !!selectedCoin && pools.length > 0 && isEVMChain2(sourceChain.shortName) && (!!walletProvider || mode === "light" /* light */);
2587
2587
  const { data: allowanceData } = (0, import_react_query3.useQuery)({
2588
- queryKey: ["evmAllowance", userAddress, sourceChain.shortName],
2588
+ queryKey: [
2589
+ "evmAllowance",
2590
+ userAddress,
2591
+ sourceChain.shortName,
2592
+ selectedCoin
2593
+ ],
2589
2594
  queryFn: () => getTokenAllowance({
2590
2595
  tokenOptions,
2591
2596
  selectedCoin,
@@ -3859,7 +3864,7 @@ function useBalance3() {
3859
3864
  const { tronWeb, userAddress: walletAddress } = useTronProvider();
3860
3865
  const userAddress = mode === "light" /* light */ ? lightDemoAccounts.TRX : walletAddress;
3861
3866
  const { data: allowanceData } = (0, import_react_query11.useQuery)({
3862
- queryKey: ["tronAllowance", userAddress],
3867
+ queryKey: ["tronAllowance", userAddress, selectedCoin],
3863
3868
  queryFn: async () => await getTokenAllowance3({
3864
3869
  tokenOptions,
3865
3870
  selectedCoin,