Skip to content

Commit

Permalink
correctly display arrays/tuples in DisplayTxResult.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteAtATime committed Apr 16, 2024
1 parent 3fb066f commit 32c4421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
if (Array.isArray(content)) {
const mostReadable = (v: DisplayContent) => (["number", "boolean"].includes(typeof v) ? v : display(true));
const mostReadable = (v: DisplayContent) => (["number", "boolean"].includes(typeof v) ? v : display(v, true));
const displayable = JSON.stringify(content.map(mostReadable), replacer);
return displayAsText ? displayable : { type: "span", content: displayable.replaceAll(",", ",\n") };
Expand Down

0 comments on commit 32c4421

Please sign in to comment.