Skip to content

Commit

Permalink
Merge pull request #6043 from LedgerHQ/bugfix/StorylyTypeError
Browse files Browse the repository at this point in the history
fix(LLM): Fix TS error - StorylyProvider
  • Loading branch information
mle-gall authored Jan 30, 2024
2 parents 9f49142 + e8513e6 commit 7e99f5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-pigs-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Fix : type error in StorylyProvider
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ const StorylyProvider: React.FC<StorylyProviderProps> = ({ children }) => {

const storylyRef = useRef<Storyly>(null);

const {
// @ts-expect-error TYPINGS
params: { stories },
} = useFeature("storyly") || {};
const { params } = useFeature("storyly") || {};
const stories = params?.stories;

useEffect(() => {
if (url) {
Expand Down

0 comments on commit 7e99f5f

Please sign in to comment.