Skip to content

Commit f461d72

Browse files
authored
Merge pull request #102 from valory-xyz/josh/skip-redirect
Fix onboarding "skip" button
2 parents 8f9c430 + 6367516 commit f461d72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/components/Setup/Create/SetupBackupSigner.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { Button, Flex, Form, Input, Typography } from 'antd';
22

33
import { CardFlex } from '@/components/styled/CardFlex';
44
import { FormFlex } from '@/components/styled/FormFlex';
5-
import { PageState, SetupScreen } from '@/enums';
6-
import { usePageState, useSetup } from '@/hooks';
5+
import { SetupScreen } from '@/enums';
6+
import { useSetup } from '@/hooks';
77
import { Address } from '@/types';
88

99
import { SetupCreateHeader } from './SetupCreateHeader';
1010

1111
export const SetupBackupSigner = () => {
1212
const { goto } = useSetup();
13-
const { goto: gotoPage } = usePageState();
1413
const { setBackupSigner } = useSetup();
1514
const [form] = Form.useForm();
1615

@@ -52,7 +51,7 @@ export const SetupBackupSigner = () => {
5251
<Button
5352
type="link"
5453
size="large"
55-
onClick={() => gotoPage(PageState.Main)}
54+
onClick={() => goto(SetupScreen.SetupEoaFunding)}
5655
>
5756
Skip for now
5857
</Button>

0 commit comments

Comments
 (0)