@cofhe/react 0.3.1 → 0.4.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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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],
|