Skip to content

Commit 4066a01

Browse files
committed
fix
1 parent 3bfb359 commit 4066a01

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

demo/components/Query.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const Query = () => {
9494
})
9595
);
9696

97-
console.log(result);
97+
console.log("result:", result);
9898
console.log(`Query for ${entrypointId}:`, entrypointData);
9999

100100
setQueryResults((prev) => ({
@@ -191,13 +191,18 @@ export const Query = () => {
191191
) : queryResults[item.identifier] ? (
192192
<div className="flex flex-col gap-1 break-all">
193193
<div className="flex items-center gap-1 font-bold border-b mb-1 pb-2">
194-
[result]:{" "}
195-
{(
196-
queryResults[item.identifier] as any
197-
).toJSON()}
194+
{JSON.stringify(
195+
(
196+
queryResults[item.identifier] as any
197+
).toJSON(),
198+
null,
199+
2
200+
)}
198201
</div>
199-
<div className="flex items-center gap-1 font-bold">
200-
[hex]:{" "}
202+
<div className="flZex items-center gap-1 font-bold">
203+
<span className="text-muted-foreground">
204+
[hex]:{" "}
205+
</span>
201206
{(queryResults[item.identifier] as any).toHex()}
202207
</div>
203208
</div>

0 commit comments

Comments
 (0)