From e8513e6b309292b85ced4002d2f988c65f3ae139 Mon Sep 17 00:00:00 2001 From: male-gal Date: Tue, 30 Jan 2024 15:49:51 +0100 Subject: [PATCH] fix(LLM): Fix ts error --- .changeset/grumpy-pigs-vanish.md | 5 +++++ .../src/components/StorylyStories/StorylyProvider.tsx | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/grumpy-pigs-vanish.md diff --git a/.changeset/grumpy-pigs-vanish.md b/.changeset/grumpy-pigs-vanish.md new file mode 100644 index 000000000000..438002008d25 --- /dev/null +++ b/.changeset/grumpy-pigs-vanish.md @@ -0,0 +1,5 @@ +--- +"live-mobile": patch +--- + +Fix : type error in StorylyProvider diff --git a/apps/ledger-live-mobile/src/components/StorylyStories/StorylyProvider.tsx b/apps/ledger-live-mobile/src/components/StorylyStories/StorylyProvider.tsx index f0b8f4e311dd..07a810d449bd 100644 --- a/apps/ledger-live-mobile/src/components/StorylyStories/StorylyProvider.tsx +++ b/apps/ledger-live-mobile/src/components/StorylyStories/StorylyProvider.tsx @@ -29,10 +29,8 @@ const StorylyProvider: React.FC = ({ children }) => { const storylyRef = useRef(null); - const { - // @ts-expect-error TYPINGS - params: { stories }, - } = useFeature("storyly") || {}; + const { params } = useFeature("storyly") || {}; + const stories = params?.stories; useEffect(() => { if (url) {