Skip to content

Commit

Permalink
feat(docs): added full handling for edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
aednikanov committed Sep 23, 2024
1 parent 8b27be8 commit a02036b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ParserOpenRPC/InteractiveBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ export default function InteractiveBox({
}
}
if (isObject(value)) {
return [checkName(name), value?.value];
return [
checkName(name),
Object.fromEntries(Object.entries(value).map(([key, val]) => [key, isObject(val) ? val.value : val]))
];
}
return [checkName(name), value];
})
Expand Down

0 comments on commit a02036b

Please sign in to comment.