Skip to content

Commit

Permalink
prevent default
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Sep 22, 2023
1 parent 58b5a70 commit 9ea7b20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/Oauth/AuthForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ const AuthForm: React.FC<AuthFormProps> = ({
{showEth && (
<Flex style={{ justifyContent: 'center', flexWrap: 'wrap', alignItems: 'center', gap: '16px' }}>
{showBtnCancel && (
<ButtonOutlined width={'230px'} onClick={() => navigateToUrl(back_uri)} height={'36px'}>
<ButtonOutlined
width={'230px'}
onClick={e => {
e.preventDefault()
navigateToUrl(back_uri)
}}
height={'36px'}
>
Cancel
</ButtonOutlined>
)}
Expand Down

0 comments on commit 9ea7b20

Please sign in to comment.