Skip to content

Commit

Permalink
Fix typings on Storyly component
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmaxime committed Sep 1, 2023
1 parent b905915 commit 375ece6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/ledger-live-desktop/src/storyly/useStoryly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ export const useStoryly = (instanceId: StorylyInstanceID) => {
const props = useStorylyDefaultStyleProps();
const language = useSelector(languageSelector);

const {
params: { stories },
} = useFeature("storyly") || {};
const storyly = useFeature("storyly");

useLayoutEffect(() => {
ref.current?.init({
layout: "classic",
token: stories[instanceId].token,
// @ts-expect-error TYPINGS
token: storyly.params?.stories[instanceId].token,
//
lang: language,
segments: [`lang_${language}`],
Expand Down

0 comments on commit 375ece6

Please sign in to comment.