Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c597b81

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: removing things that will be added in different task
1 parent 88f2340 commit c597b81

File tree

1 file changed

+0
-7
lines changed
  • src/features/dashboard/components/ApiTokenForm/CreateTokenField

1 file changed

+0
-7
lines changed

src/features/dashboard/components/ApiTokenForm/CreateTokenField/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ const CreateTokenField = ({
4646
}, [tokens]);
4747

4848
const token_name_exists = getTokenNames.includes(input_value.toLowerCase());
49-
const no_min_max_error =
50-
(errors && errors.name?.type === 'min') || (errors && errors.name?.type === 'max');
5149
const disable_button = token_name_exists || Object.keys(errors).length > 0 || input_value === '';
5250
const error_border_active = token_name_exists || errors.name;
5351

@@ -85,11 +83,6 @@ const CreateTokenField = ({
8583
<p>That name is taken. Choose another.</p>
8684
</div>
8785
)}
88-
{!no_min_max_error && (
89-
<div className={styles.helperText}>
90-
<p>Length of token name must be between 2 and 32 characters.</p>
91-
</div>
92-
)}
9386
</React.Fragment>
9487
);
9588
};

0 commit comments

Comments
 (0)