Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Dec 28, 2023
1 parent ceb36f7 commit dc06bb2
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const DxtradePasswordModal = () => {
if (accountType === 'demo') {
return (
<Button
isFullWidth
onClick={() => {
hide();
}}
Expand Down Expand Up @@ -79,16 +78,10 @@ const DxtradePasswordModal = () => {
if (!isDxtradePasswordNotSet) {
return (
<ButtonGroup>
<Button isFullWidth size='lg' variant='outlined'>
<Button size='lg' variant='outlined'>
Forgot password?
</Button>
<Button
disabled={!password || isLoading}
isFullWidth
isLoading={isLoading}
onClick={onSubmit}
size='lg'
>
<Button disabled={!password || isLoading} isLoading={isLoading} onClick={onSubmit} size='lg'>
Add account
</Button>
</ButtonGroup>
Expand Down Expand Up @@ -147,6 +140,7 @@ const DxtradePasswordModal = () => {
dxtradePlatform,
error?.error?.code,
]);

if (status === 'error' && error?.error?.code !== 'PasswordError') {
return <ActionScreen description={error?.error.message} title={error?.error?.code} />;
}
Expand Down

0 comments on commit dc06bb2

Please sign in to comment.