Skip to content

Commit

Permalink
Merge pull request #9152 from LedgerHQ/fix/llm-analytics-console-deep…
Browse files Browse the repository at this point in the history
…-props

fix(llm): 🩹 fix the analytics console for deep properties
  • Loading branch information
thesan authored Feb 7, 2025
2 parents 9bfe259 + 9bd9938 commit 2b90b42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-humans-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Fix the analytics console for deep properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const Event: React.FC<Props> = ({
const propertiesText = useMemo(
() =>
propertiesToDisplay
? JSON.stringify(propertiesToDisplay, Object.keys(propertiesToDisplay).sort(), 2)
.split("\n")
.slice(1, -1)
.join("\n")
? JSON.stringify(propertiesToDisplay, null, 2).replace(/^{\n|\n}$/g, "")
: null,
[propertiesToDisplay],
);
Expand Down

0 comments on commit 2b90b42

Please sign in to comment.