@cofhe/react 0.3.1 → 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.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.cjs
CHANGED
|
@@ -3351,7 +3351,7 @@ function useCofheDecrypt({
|
|
|
3351
3351
|
const { client } = useCofheContext();
|
|
3352
3352
|
const isCofheErrorActive = useIsCofheErrorActive();
|
|
3353
3353
|
const { enabled: userEnabled, ...restQueryOptions } = queryOptions || {};
|
|
3354
|
-
const enabled = !!input && input.ctHash > 0n && !isCofheErrorActive && !!client && (userEnabled ?? true);
|
|
3354
|
+
const enabled = !!input && BigInt(input.ctHash) > 0n && !isCofheErrorActive && !!client && (userEnabled ?? true);
|
|
3355
3355
|
return useInternalQuery({
|
|
3356
3356
|
enabled,
|
|
3357
3357
|
queryKey: ["decryptCiphertext", input?.ctHash.toString(), input?.utype],
|