We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f81079 commit 9a32945Copy full SHA for 9a32945
hooks/core/useScQuery.tsx
@@ -92,6 +92,8 @@ export function useScQuery<T extends number | string | boolean | unknown>({
92
});
93
94
const parseData = (data: string | number | undefined | unknown) => {
95
+ if (data === undefined || data === null) return;
96
+
97
if (type === SCQueryType.COMPLEX && !abiJSON) {
98
throw new Error(
99
'Please provide the ABI JSON contents if you want to use the COMPLEX queries in useScQuery! Check README.md for more info.'
0 commit comments