From 6f1678993239bc87a1722066eaf383256812b3c0 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 6 Oct 2023 14:10:42 +0300 Subject: [PATCH] fix steps --- .../ValidatorOnboarding/Advisories/Advisories.stories.ts | 2 +- src/pages/ValidatorOnboarding/Advisories/Advisories.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/ValidatorOnboarding/Advisories/Advisories.stories.ts b/src/pages/ValidatorOnboarding/Advisories/Advisories.stories.ts index 9c01f413..19e94063 100644 --- a/src/pages/ValidatorOnboarding/Advisories/Advisories.stories.ts +++ b/src/pages/ValidatorOnboarding/Advisories/Advisories.stories.ts @@ -17,5 +17,5 @@ export default meta type Story = StoryObj export const Default: Story = { - args: {}, + args: {advisoriesIcons: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], subStepAdvisories: 0}, } diff --git a/src/pages/ValidatorOnboarding/Advisories/Advisories.tsx b/src/pages/ValidatorOnboarding/Advisories/Advisories.tsx index 939d668a..7353dd59 100644 --- a/src/pages/ValidatorOnboarding/Advisories/Advisories.tsx +++ b/src/pages/ValidatorOnboarding/Advisories/Advisories.tsx @@ -25,9 +25,7 @@ const Advisories = ({ advisoriesIcons, subStepAdvisories }: AdvisoriesProps) => const index = topics.indexOf(currentTitle); return index <= subStepAdvisories ? true : false; } - - const isSameTitle = (title: string) => selectedTitle === title - + return (