uvd-x402-sdk 2.89.0 → 2.90.0

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.
@@ -3249,13 +3249,13 @@ function useBalance() {
3249
3249
  };
3250
3250
  }
3251
3251
  function usePayment() {
3252
- const { client, isConnected } = useX402();
3252
+ const { client } = useX402();
3253
3253
  const [isPaying, setIsPaying] = useState(false);
3254
3254
  const [error, setError] = useState(null);
3255
3255
  const [lastResult, setLastResult] = useState(null);
3256
3256
  const pay = useCallback(
3257
3257
  async (paymentInfo) => {
3258
- if (!isConnected) {
3258
+ if (!client.getState().connected) {
3259
3259
  throw new Error("Wallet not connected");
3260
3260
  }
3261
3261
  setIsPaying(true);
@@ -3272,7 +3272,7 @@ function usePayment() {
3272
3272
  setIsPaying(false);
3273
3273
  }
3274
3274
  },
3275
- [client, isConnected]
3275
+ [client]
3276
3276
  );
3277
3277
  const reset = useCallback(() => {
3278
3278
  setError(null);