@cofhe/react 0.3.0 → 0.3.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.js CHANGED
@@ -3285,7 +3285,7 @@ function useCofheDecrypt({
3285
3285
  const { client } = useCofheContext();
3286
3286
  const isCofheErrorActive = useIsCofheErrorActive();
3287
3287
  const { enabled: userEnabled, ...restQueryOptions } = queryOptions || {};
3288
- const enabled = !!input && input.ctHash > 0n && !isCofheErrorActive && !!client && (userEnabled ?? true);
3288
+ const enabled = !!input && BigInt(input.ctHash) > 0n && !isCofheErrorActive && !!client && (userEnabled ?? true);
3289
3289
  return useInternalQuery({
3290
3290
  enabled,
3291
3291
  queryKey: ["decryptCiphertext", input?.ctHash.toString(), input?.utype],